BUG: dont cut last char if start is a space
This commit is contained in:
parent
7b0403c8e0
commit
27a5794d86
@ -29,8 +29,8 @@ def getTextBetweenMarks(firstMark, secondMark, inText):
|
|||||||
else:
|
else:
|
||||||
textPart += inText[currY]
|
textPart += inText[currY]
|
||||||
if len(inText[currY].strip()) != 0:
|
if len(inText[currY].strip()) != 0:
|
||||||
if len(textPart) - len(textPart[::-1].strip()) > 0:
|
if len(textPart) - len(textPart.rstrip()) > 0:
|
||||||
textPart = textPart[:len(textPart[::-1].strip())] + "\n"
|
textPart = textPart[:len(textPart.rstrip())] + "\n"
|
||||||
else:
|
else:
|
||||||
textPart += '\n'
|
textPart += '\n'
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user