Fix bug 86093 - Tab chars in html source show up as "[]" (square) in Error Console

(replace all whitespace characters with spaces)
p=Simon Bunzli <zeniko@gmail.com>
r=gavin, sr=neil
This commit is contained in:
asqueella%gmail.com 2007-03-01 07:17:54 +00:00
Родитель 8ddf337aee
Коммит 4b272baf50
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -174,7 +174,7 @@
row.setAttribute("hideSource", "true");
}
if (aObject.sourceLine) {
row.setAttribute("code", aObject.sourceLine.replace("\n", "", "g"));
row.setAttribute("code", aObject.sourceLine.replace(/\s/g, " "));
if (aObject.columnNumber) {
row.setAttribute("col", aObject.columnNumber);
row.setAttribute("errorDots", this.repeatChar(" ", aObject.columnNumber));

Просмотреть файл

@ -180,7 +180,7 @@
row.setAttribute("hideSource", "true");
}
if (aObject.sourceLine) {
row.setAttribute("code", aObject.sourceLine.replace("\n", "", "g"));
row.setAttribute("code", aObject.sourceLine.replace(/\s/g, " "));
if (aObject.columnNumber) {
row.setAttribute("col", aObject.columnNumber);
row.setAttribute("errorDots", this.repeatChar(" ", aObject.columnNumber));