mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix <pre> tags setting default indent to 0 and make link_exclude default to @
This commit is contained in:
parent
7d736b5c1f
commit
2fa6b14547
@ -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')
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user