зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
8ddf337aee
Коммит
4b272baf50
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче