RTF Output: Fix incorrent spacing between letters. Fixes #8422 (Extra Space (v 0.7.40))

This commit is contained in:
Kovid Goyal 2011-01-21 09:14:53 -07:00
commit 396da1f7bc
2 changed files with 3 additions and 1 deletions

View File

@ -262,7 +262,7 @@ class RTFMLizer(object):
if hasattr(elem, 'tail') and elem.tail != None and elem.tail.strip() != '':
if 'block' in tag_stack:
text += '%s ' % txt2rtf(elem.tail)
text += '%s' % txt2rtf(elem.tail)
else:
text += '{\\par \\pard \\hyphpar %s}' % txt2rtf(elem.tail)

View File

@ -47,6 +47,8 @@ class RegexBuilder(QDialog, Ui_RegexBuilder):
return False
else:
self.regex.setStyleSheet('QLineEdit { color: black; background-color: white; }')
self.preview.setExtraSelections([])
return False
return True
def do_test(self):