Lines with hard line breaks should not have a justify property

This commit is contained in:
Veronica K. B. Olsen
2020-05-23 14:35:41 +02:00
parent 2d2974a4af
commit dd9ec4772b
2 changed files with 14 additions and 6 deletions
+8 -3
View File
@@ -366,9 +366,14 @@ class Tokenizer():
# Save the line as is, but append the array of formatting locations
# sorted by position
fmtPos = sorted(fmtPos, key=itemgetter(0))
self.theTokens.append((
self.T_TEXT, aLine, fmtPos, defAlign
))
if aLine.endswith(" "):
self.theTokens.append((
self.T_TEXT, aLine, fmtPos, self.A_LEFT
))
else:
self.theTokens.append((
self.T_TEXT, aLine, fmtPos, defAlign
))
tmpMarkdown.append("%s\n" % aLine)
# Always add an empty line at the end