addon: disable blank paragraph check (#3960)

This commit is contained in:
Frédéric Péters 2013-12-29 23:05:11 +01:00
parent 8fd91c19a6
commit 64a1b2a371
1 changed files with 4 additions and 1 deletions

View File

@ -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)