From 29a8b68830d2aff34477cbb2fd8bcf34704ff1d1 Mon Sep 17 00:00:00 2001 From: Matt Burton Date: Wed, 7 Oct 2009 21:15:19 +0000 Subject: [PATCH] Adding Andy Pascall's bibTex fix --- translators/BibTeX.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translators/BibTeX.js b/translators/BibTeX.js index b4c046725..fc5486373 100644 --- 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);