From 1d2965bebbb6efd27591b593dd6d3882a369eaa7 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sun, 13 Feb 2011 10:18:29 -0500 Subject: [PATCH] Fix -tags option in command line generated by n_a. Closes issue #369. --- common/content/bookmarks.js | 2 +- common/modules/commands.jsm | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common/content/bookmarks.js b/common/content/bookmarks.js index d49016c5..f6b25df6 100644 --- a/common/content/bookmarks.js +++ b/common/content/bookmarks.js @@ -546,7 +546,7 @@ var Bookmarks = Module("bookmarks", { if (bmark.post) options["-post"] = bmark.post; if (bmark.tags.length > 0) - options["-tags"] = bmark.tags.join(", "); + options["-tags"] = bmark.tags; } else { if (buffer.title != buffer.uri.spec) diff --git a/common/modules/commands.jsm b/common/modules/commands.jsm index 87fdcb56..4828e978 100644 --- a/common/modules/commands.jsm +++ b/common/modules/commands.jsm @@ -710,7 +710,9 @@ var Commands = Module("commands", { if (val != null && defaults[opt] === val) continue; let chr = /^-.$/.test(opt) ? " " : "="; - if (val != null) + if (isArray(val)) + opt += chr + Option.stringify.stringlist(val); + else if (val != null) opt += chr + Commands.quote(val); res.push(opt); }