Fix <pre> tags setting default indent to 0 and make link_exclude default to @

This commit is contained in:
Kovid Goyal 2007-08-25 15:54:06 +00:00
parent 7d736b5c1f
commit 2fa6b14547
2 changed files with 3 additions and 1 deletions

View File

@ -132,7 +132,7 @@ def option_parser(usage):
help=r'''The maximum number of levels to recursively process '''
'''links. A value of 0 means thats links are not followed. '''
'''A negative value means that <a> tags are ignored.''')
link.add_option('--link-exclude', dest='link_exclude', default='$',
link.add_option('--link-exclude', dest='link_exclude', default='@',
help='''A regular expression. <a> tags whoose href '''
'''matches will be ignored. Defaults to %default''')
chapter = parser.add_option_group('CHAPTER OPTIONS')

View File

@ -1213,6 +1213,8 @@ class HTMLConverter(object):
self.end_current_para()
self.end_current_block()
self.current_block = self.book.create_text_block()
ts = self.current_block.textStyle.copy()
self.current_block.textStyle = ts
self.current_block.textStyle.attrs['parindent'] = '0'
if tag.contents:
c = tag.contents[0]