Reword comment: bold -> emphasis
This commit is contained in:
parent
544155632f
commit
ae2f70a723
1 changed files with 2 additions and 1 deletions
|
@ -100,7 +100,7 @@ class Formatted(object):
|
||||||
attributes["bold"] = not attributes["bold"]
|
attributes["bold"] = not attributes["bold"]
|
||||||
i = i + 1
|
i = i + 1
|
||||||
|
|
||||||
# Markdown bold
|
# Markdown emphasis
|
||||||
elif line[i] == "*":
|
elif line[i] == "*":
|
||||||
if attributes["italic"] and not line[i - 1].isspace():
|
if attributes["italic"] and not line[i - 1].isspace():
|
||||||
if text:
|
if text:
|
||||||
|
@ -179,6 +179,7 @@ class Formatted(object):
|
||||||
# Reset all the attributes
|
# Reset all the attributes
|
||||||
attributes = DEFAULT_ATTRIBUTES.copy()
|
attributes = DEFAULT_ATTRIBUTES.copy()
|
||||||
i = i + 1
|
i = i + 1
|
||||||
|
|
||||||
# Italic
|
# Italic
|
||||||
elif line[i] == "\x1D":
|
elif line[i] == "\x1D":
|
||||||
if text:
|
if text:
|
||||||
|
|
Loading…
Add table
Reference in a new issue