closes #432, Add hidden pref to enable clipboard export on Mac. The pref is extensions.zotero.enableMacClipboard

closes #312, Optional subdomains should be optional in scraper regular expressions.
This commit is contained in:
Simon Kornblith 2006-12-13 05:56:16 +00:00
parent c6d4cdd57b
commit 0bdbfb12ee
3 changed files with 8 additions and 2 deletions

View file

@ -65,7 +65,10 @@ var Zotero_File_Interface_Bibliography = new function() {
styleMenu.selectedIndex = 0;
}
if(Zotero.isMac && document.getElementById("copy-to-clipboard")) {
// disable clipboard on the Mac, because it can't support formatted
// output
if(Zotero.isMac && document.getElementById("copy-to-clipboard") &&
!Zotero.Prefs.get("enableMacClipboard")) {
document.getElementById("copy-to-clipboard").hidden = "true";
}

View file

@ -527,7 +527,9 @@ Zotero.CSL.prototype.createBibliography = function(items, format) {
index++;
output += index+". ";
}
output += string+"\r\n\r\n";
// attach \n on mac (since both \r and \n count as newlines for
// clipboard purposes)
output += string+(Zotero.isMac ? "\n\n" : "\r\n\r\n");
}
}

View file

@ -12,4 +12,5 @@ pref("extensions.zotero.parseEndNoteMIMETypes",true);
pref("extensions.zotero.automaticSnapshots",true);
pref("extensions.zotero.downloadAssociatedFiles",false);
pref("extensions.zotero.reportTranslationFailure",true);
pref("extensions.zotero.enableMacClipboard",false);
pref("extensions.zotero.lastCreatorFieldMode",0);