Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitea9dd99

Browse files
author
James Graham
committed
Make parse.py work
1 parentd63374a commitea9dd99

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎parse.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,13 @@ def printOutput(parser, document, opts):
9898
elifopts.html:
9999
kwargs= {}
100100
foroptinserializer.HTMLSerializer.options:
101-
kwargs[opt]=getattr(opts,opt)
102-
ifnotkwargs['quote_char']:delkwargs['quote_char']
101+
try:
102+
kwargs[opt]=getattr(opts,opt)
103+
except:
104+
pass
105+
ifnotkwargs['quote_char']:
106+
delkwargs['quote_char']
107+
103108
tokens=treewalkers.getTreeWalker(opts.treebuilder)(document)
104109
fortextinserializer.HTMLSerializer(**kwargs).serialize(tokens,encoding='utf-8'):
105110
sys.stdout.write(text)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp