Fix off by one error for arrow that points out XML error locations.
git-svn-id: svn://10.0.0.236/trunk@29054 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
2f63dc07d9
commit
29063e4928
@ -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("^");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user