From ee241f175fb9de69f17723a5cf31d0025a3a2fbd Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Mon, 13 Nov 2006 21:42:51 +0000 Subject: removing linebreaks from generated html git-svn-id: http://svn.klever.net/kin/fireflix/trunk@217 fe716a7a-6dde-0310-88d9-d003556173a8 --- (limited to 'content') diff --git a/content/generated-content.js b/content/generated-content.js index 0ad08bb..f9addd6 100644 --- a/content/generated-content.js +++ b/content/generated-content.js @@ -13,5 +13,9 @@ var generated = { var ch = Components.classes["@mozilla.org/widget/clipboardhelper;1"] .getService(Components.interfaces.nsIClipboardHelper); ch.copyString(this.data); + }, + nolf: function() { + this.databox.value = this.data.replace(/[\r\n]/,''); + document.getElementById('nolf').disabled = true; } }; diff --git a/content/generated-content.xul b/content/generated-content.xul index 2a91efa..fd508c2 100644 --- a/content/generated-content.xul +++ b/content/generated-content.xul @@ -15,6 +15,7 @@ +