HaikuDepot: MarkupParser: Fixed off-by-one error...
... when finishing a paragraph to include the last character.
This commit is contained in:
parent
59b52a1163
commit
df10644048
@ -118,7 +118,7 @@ MarkupParser::_ParseText(const BString& text)
|
||||
switch (nextChar) {
|
||||
case '\n':
|
||||
case '\0':
|
||||
_CopySpan(text, start, offset - 1);
|
||||
_CopySpan(text, start, offset);
|
||||
_FinishParagraph();
|
||||
start = offset + 1;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user