linterna-magica-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linterna-magica-commit] [169] The replacement of new lines in the log o


From: Ivaylo Valkov
Subject: [linterna-magica-commit] [169] The replacement of new lines in the log output should be global.
Date: Fri, 29 Jul 2011 08:03:57 +0000

Revision: 169
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=169
Author:   valkov
Date:     2011-07-29 08:03:57 +0000 (Fri, 29 Jul 2011)
Log Message:
-----------
The replacement of new lines in the log output should be global. Fixes 
displacement of output line with more then one new line.

Modified Paths:
--------------
    trunk/src/lm_log.js

Modified: trunk/src/lm_log.js
===================================================================
--- trunk/src/lm_log.js 2011-07-29 07:58:12 UTC (rev 168)
+++ trunk/src/lm_log.js 2011-07-29 08:03:57 UTC (rev 169)
@@ -68,8 +68,8 @@
        var log_string = message + " at "+host + " time: "+str;
        var level_string =  " ("+level+") ";
 
-       log_string = log_string.replace(/^/, indent+level_string).
-           replace(/\n/, "\n"+indent+level_string);
+       log_string = log_string.replace(/^/g, indent+level_string).
+           replace(/\n/g, "\n"+indent+level_string);
 
        try
        {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]