[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-launcher/master] Windows clipboard: Use \r\n for end of line.



commit cac0e0880c807ce8d45fcbd7d6e91c5c3d0d1a22
Author: Kathy Brade <brade@xxxxxxxxxxxxxxxxx>
Date:   Fri May 3 09:07:03 2013 -0400

    Windows clipboard: Use \r\n for end of line.
---
 src/components/tl-protocol.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/components/tl-protocol.js b/src/components/tl-protocol.js
index 2ff5ab7..c4e14f9 100644
--- a/src/components/tl-protocol.js
+++ b/src/components/tl-protocol.js
@@ -423,6 +423,7 @@ TorProtocolService.prototype =
                       .getService(Ci.nsIScriptableDateFormat);
       let dateFormat = dateFmtSvc.dateFormatShort;
       let timeFormat = dateFmtSvc.timeFormatSecondsForce24Hour;
+      let eol = (TorLauncherUtil.isWindows) ? "\r\n" : "\n";
       for (let i = 0; i < this.mTorLog.length; ++i)
       {
         let logObj = this.mTorLog[i];
@@ -438,7 +439,7 @@ TorProtocolService.prototype =
           fracSecsStr += "0";
         timeStr += '.' + fracSecsStr;
 
-        s += timeStr + " [" + logObj.type + "] " + logObj.msg + "\n";
+        s += timeStr + " [" + logObj.type + "] " + logObj.msg + eol;
       }
     }
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits