Logging met \n vertalen naar <br> is iets vriendelijker

svn path=/Website/trunk/; revision=30401
This commit is contained in:
Jos Groot Lipman
2016-08-24 10:09:54 +00:00
parent 535ce72bf8
commit 30cbf49029

View File

@@ -299,7 +299,7 @@ function __DoLog(s, optionalColor, optionalCaller, leave_open)
s = "<em style='font-size:smaller'>JSON is niet gedefinieerd, fallback naar __Log:</em><br>" + Server.HTMLEncode(String(s))
}
else
s = Server.HTMLEncode(String(s))
s = Server.HTMLEncode(String(s)).replace(/\n/g, "<br>");
__SafeDoLog(s, optionalColor, optionalCaller, leave_open);
}