Remove trailing newline from blockquote

main
Bob Mottram 2021-02-26 23:28:19 +00:00
parent b07bc917f4
commit 1181ad5858
1 changed files with 4 additions and 1 deletions

View File

@ -94,9 +94,12 @@ def _markdownReplaceQuotes(markdown: str) -> str:
result += lineStr
prevQuoteLine = lineStr
if '</blockquote>\n' in result:
result = result.replace('</blockquote>\n', '</blockquote>')
if result.endswith('\n') and \
not markdown.endswith('\n'):
result = result[:len(result) -1]
result = result[:len(result) - 1]
return result