addon: disable blank paragraph check (#3960)
This commit is contained in:
parent
8fd91c19a6
commit
64a1b2a371
|
@ -1087,7 +1087,10 @@ def check_structure(doc):
|
|||
cursor.gotoEndOfParagraph(True)
|
||||
s = cursor.String.replace(' ', '').replace('\t', '').replace(u'\xa0', '')
|
||||
if cursor.String and s == '': # paragraph filled with nothing but spaces
|
||||
error = StructureError('paragraph-filled-with-nothing-but-spaces')
|
||||
#error = StructureError('paragraph-filled-with-nothing-but-spaces')
|
||||
# do not mark this as an error, they will be ignored automatically
|
||||
# by odf2legi
|
||||
pass
|
||||
|
||||
if error:
|
||||
view_cursor.gotoRange(cursor, False)
|
||||
|
|
Reference in New Issue