commit cac0e0880c807ce8d45fcbd7d6e91c5c3d0d1a22 Author: Kathy Brade brade@pearlcrescent.com 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; } }