Improved logging of strings with embedded carriage returns

This commit is contained in:
Jeff Parsons 2017-08-02 10:58:21 -07:00 committed by Jeff Parsons
commit aefe2b4b5b
21 changed files with 488 additions and 407 deletions

View file

@ -931,7 +931,7 @@
<xsl:variable name="scaleMouse">
<xsl:choose>
<xsl:when test="@scaleMouse"><xsl:value-of select="@scaleMouse"/></xsl:when>
<xsl:otherwise>1</xsl:otherwise>
<xsl:otherwise>0.5</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:call-template name="component">

File diff suppressed because one or more lines are too long

View file

@ -2701,7 +2701,8 @@ class Component {
}
sElapsed = (Component.getTime() - Component.msStart) + "ms: ";
}
if (window && window.console) console.log(sElapsed + sMsg.replace(/\n/g, ' '));
sMsg = sMsg.replace(/\r/g, '\\r').replace(/\n/g, ' ');
if (window && window.console) console.log(sElapsed + sMsg);
}
}
}

File diff suppressed because one or more lines are too long