summaryrefslogtreecommitdiffabout
path: root/content
Side-by-side diff
Diffstat (limited to 'content') (more/less context) (ignore whitespace changes)
-rw-r--r--content/generated-content.js4
-rw-r--r--content/generated-content.xul1
2 files changed, 5 insertions, 0 deletions
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
@@ -15,2 +15,6 @@ var generated = {
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
@@ -17,2 +17,3 @@
<textbox flex="1" minheight="300" minwidth="300" id="data" multiline="true" readonly="true" />
+ <button id="nolf" label="&generated.nolf;" oncommand="generated.nolf()" />
<button id="copy" label="&generated.copy;" oncommand="generated.copy()" />