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) {
|
switch (nextChar) {
|
||||||
case '\n':
|
case '\n':
|
||||||
case '\0':
|
case '\0':
|
||||||
_CopySpan(text, start, offset - 1);
|
_CopySpan(text, start, offset);
|
||||||
_FinishParagraph();
|
_FinishParagraph();
|
||||||
start = offset + 1;
|
start = offset + 1;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user