зеркало из https://github.com/mozilla/pjs.git
Fix off by one error for arrow that points out XML error locations.
This commit is contained in:
Родитель
69f560ce78
Коммит
9b5bf70dcc
|
@ -751,7 +751,7 @@ nsresult nsXMLContentSink::CreateSourceText(const nsParserError* aError, nsStrin
|
|||
|
||||
sourceText.Append(aError->sourceLine);
|
||||
sourceText.Append("\n");
|
||||
for (int i = 0; i < errorPosition - 1; i++)
|
||||
for (int i = 0; i < errorPosition; i++)
|
||||
sourceText.Append("-");
|
||||
sourceText.Append("^");
|
||||
|
||||
|
|
|
@ -751,7 +751,7 @@ nsresult nsXMLContentSink::CreateSourceText(const nsParserError* aError, nsStrin
|
|||
|
||||
sourceText.Append(aError->sourceLine);
|
||||
sourceText.Append("\n");
|
||||
for (int i = 0; i < errorPosition - 1; i++)
|
||||
for (int i = 0; i < errorPosition; i++)
|
||||
sourceText.Append("-");
|
||||
sourceText.Append("^");
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче