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
|
i = i + 1
|
||||||
continue
|
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]
|
text = text + line[i]
|
||||||
i = i + 1
|
i = i + 1
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Reference in a new issue