commit e86686aeaa0cc79ba45e844313c1a3a64e325b51 parent 18568d81539343d75519f6a5208b71656267af46 Author: Dan Stillman <dstillman@zotero.org> Date: Fri, 29 May 2009 21:17:00 +0000 Fix skipped first tag Diffstat:
| M | chrome/content/zotero/longTagFixer.js | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/longTagFixer.js b/chrome/content/zotero/longTagFixer.js @@ -68,7 +68,10 @@ var Zotero_Long_Tag_Fixer = new function () { tags.sort(); for (var i=0; i<tags.length; i++) { - if (i==0 || tags[i] == tags[i-1]) { + if (i != 0 && tags[i] == tags[i-1]) { + continue; + } + if (!tags[i]) { continue; } var li = listbox.appendItem(tags[i]);