mirror of https://github.com/zedeus/nitter
prevent karax from inserting whitespaces to fix wrapping
This commit is contained in:
parent
ec8f740c14
commit
867e50f308
|
@ -49,6 +49,9 @@ proc renderNoteParagraph(articleParagraph: ArticleParagraph; article: Article):
|
|||
|
||||
var last = 0
|
||||
for er in articleParagraph.entityRanges:
|
||||
# prevent karax from inserting whitespaces to fix wrapping
|
||||
result.add text ""
|
||||
|
||||
# flush remaining text
|
||||
if er.offset > last:
|
||||
result.add verbatim text.runeSubStr(last, er.offset - last).replaceHashtagsAndMentions
|
||||
|
|
Loading…
Reference in New Issue