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:
@@ -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("^");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user