Reword comment: bold -> emphasis

This commit is contained in:
Denis Kasak 2019-01-16 14:12:10 +01:00
parent 544155632f
commit ae2f70a723

View file

@ -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: