bruh
This commit is contained in:
parent
0f481714c0
commit
c6d08050e2
|
@ -184,7 +184,7 @@ def format_links(content):
|
||||||
|
|
||||||
|
|
||||||
def _wrapped(text):
|
def _wrapped(text):
|
||||||
"""check if a line of text is wrapped in parentheses, square brackets or curly brackets. return wrapped status"""
|
"""check if a line of text is wrapped"""
|
||||||
wrappers = [("(", ")"), ("[", "]"), ("{", "}")]
|
wrappers = [("(", ")"), ("[", "]"), ("{", "}")]
|
||||||
for wrapper in wrappers:
|
for wrapper in wrappers:
|
||||||
if text[0] == wrapper[0] and text[-1] == wrapper[-1]:
|
if text[0] == wrapper[0] and text[-1] == wrapper[-1]:
|
||||||
|
|
Loading…
Reference in New Issue