commit 29a8b68830d2aff34477cbb2fd8bcf34704ff1d1
parent 1f63fecac25bb5d47edf0effda25fecd759598da
Author: Matt Burton <mcburton@gmail.com>
Date: Wed, 7 Oct 2009 21:15:19 +0000
Adding Andy Pascall's bibTex fix
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/translators/BibTeX.js b/translators/BibTeX.js
@@ -1815,7 +1815,7 @@ function writeField(field, value, isMacro) {
// I hope these are all the escape characters!
value = value.replace(/[|\<\>\~\^\\]/g, mapEscape).replace(/([\#\$\%\&\_])/g, "\\$1");
// Case of words with uppercase characters in non-initial positions is preserved with braces.
- if(!isMacro) value = value.replace(/([^\s]+[A-Z][^\s]*)/g, "{$1}");
+ if(!isMacro&&field != "pages") value = value.replace(/([^\s]+[A-Z][^\s]*)/g, "{$1}");
}
if (Zotero.getOption("exportCharset") != "UTF-8") {
value = value.replace(/[\u0080-\uFFFF]/g, mapAccent);