colors: Fix index out of range error for markdown style emph.
This commit is contained in:
parent
0df199fd6f
commit
c9d953dc4d
1 changed files with 6 additions and 1 deletions
|
@ -89,7 +89,12 @@ class Formatted():
|
|||
i = i + 1
|
||||
continue
|
||||
|
||||
elif i+1 > len(line) or line[i+1].isspace():
|
||||
elif i+1 < len(line) and line[i+1].isspace():
|
||||
text = text + line[i]
|
||||
i = i + 1
|
||||
continue
|
||||
|
||||
elif i == len(line) - 1:
|
||||
text = text + line[i]
|
||||
i = i + 1
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue