2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

console.js: fix typo (Forum #102773)

git-svn-id: https://svn.fhem.de/fhem/trunk@19947 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-08-04 13:02:12 +00:00
parent 539503797f
commit 894a0328fd

View File

@ -62,7 +62,7 @@ consUpdate(evt)
log("Console Rcvd: "+new_content);
// replace space with nbsp to preserve formatting
var rTab = {'<':'&lt;', '>':'&gt;',' ':'&nbsp;'};
var isTa = $("#console").is("textarea"); # 102773
var isTa = $("#console").is("textarea"); // 102773
new_content = new_content.replace(/(.*)<br>[\r\n]/g, function(all,p1) {
return p1.replace(/[<> ]/g, function(a){return rTab[a]})+(isTa ? "\n" : "<br>");
});