File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ proc renderNoteParagraph(articleParagraph: ArticleParagraph; article: Article; t
96
96
let
97
97
styleStart = styleRange.offset
98
98
styleEnd = styleStart + styleRange.length
99
- if styleStart <= i and styleEnd >= i:
99
+ if styleStart <= i and styleEnd > i:
100
100
case styleRange.style:
101
101
of ArticleStyle .bold:
102
102
style.setBit (0 )
@@ -108,11 +108,10 @@ proc renderNoteParagraph(articleParagraph: ArticleParagraph; article: Article; t
108
108
109
109
if style != lastStyle:
110
110
if i > lastStart:
111
- flushInternal (lastStart, i - lastStart - 1 , lastStyle)
112
- lastStart = i - 1
113
- else :
114
- lastStart = i
111
+ flushInternal (lastStart, i - lastStart, lastStyle)
112
+
115
113
lastStyle = style
114
+ lastStart = i
116
115
117
116
if lastStart < len:
118
117
flushInternal (lastStart, len - lastStart, lastStyle)
You can’t perform that action at this time.
0 commit comments