Patch for http://bugs.webkit.org/show_bug.cgi?id=12555
Drosera doesn't handle CR ( carriage returns ) well
- Normalize all the line endings.
* Drosera/debugger.js:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@19386
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-02-03 Sam Weinig <sam@webkit.org>
+
+ Reviewed by Mark.
+
+ Patch for http://bugs.webkit.org/show_bug.cgi?id=12555
+ Drosera doesn't handle CR ( carriage returns ) well
+
+ - Normalize all the line endings.
+
+ * Drosera/debugger.js:
+
2007-02-02 Geoffrey Garen <ggaren@apple.com>
Reviewed by Darin Adler.
var table = sourcesDocument.createElement("table");
sourceDiv.appendChild(table);
- var normalizedSource = file.source.replace(/\r\n|\r/, "\n"); // normalize line endings
+ var normalizedSource = file.source.replace(/\r\n|\r/g, "\n"); // normalize line endings
var lines = syntaxHighlight(normalizedSource, file).split("\n");
for( var i = 0; i < lines.length; i++ ) {
var tr = sourcesDocument.createElement("tr");