mirror of https://gitlab.com/bashrc2/epicyon
Better handling of quotes
parent
7a5e915a57
commit
8565f362e6
|
@ -19,12 +19,13 @@ def htmlReplaceQuoteMarks(content: str) -> str:
|
|||
"hello" becomes <q>hello</q>
|
||||
"""
|
||||
if '"' not in content:
|
||||
if '"' not in content:
|
||||
return content
|
||||
|
||||
newContent = content
|
||||
if '"' in content:
|
||||
sections = content.split('"')
|
||||
if len(sections) <= 2:
|
||||
return content
|
||||
|
||||
if len(sections) > 1:
|
||||
newContent = ''
|
||||
openQuote = True
|
||||
markup = False
|
||||
|
|
Loading…
Reference in New Issue