diff --git a/src/libprs500/ebooks/lrf/__init__.py b/src/libprs500/ebooks/lrf/__init__.py index fe6166b32e..a111dd2d45 100644 --- a/src/libprs500/ebooks/lrf/__init__.py +++ b/src/libprs500/ebooks/lrf/__init__.py @@ -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 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. tags whoose href ''' '''matches will be ignored. Defaults to %default''') chapter = parser.add_option_group('CHAPTER OPTIONS') diff --git a/src/libprs500/ebooks/lrf/html/convert_from.py b/src/libprs500/ebooks/lrf/html/convert_from.py index 3fcdc5c62c..f02b2c5ffa 100644 --- a/src/libprs500/ebooks/lrf/html/convert_from.py +++ b/src/libprs500/ebooks/lrf/html/convert_from.py @@ -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]