Add patch to fix headless BibTeX output.
authorgregor herrmann <gregoa@debian.org>
Wed, 7 May 2014 20:04:45 +0000 (22:04 +0200)
committergregor herrmann <gregoa@debian.org>
Wed, 7 May 2014 20:04:45 +0000 (22:04 +0200)
Thanks: Vincent Fourmond for the bug report and the patch.
Closes: #723100

debian/patches/fix-headless-bibtex-output.diff [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/fix-headless-bibtex-output.diff b/debian/patches/fix-headless-bibtex-output.diff
new file mode 100644 (file)
index 0000000..41c0710
--- /dev/null
@@ -0,0 +1,27 @@
+Description: fix headless BibTeX output
+Origin: vendor
+Bug: http://sourceforge.net/p/jabref/bugs/1228/
+Bug-Debian: https://bugs.debian.org/723100
+Forwarded: http://sourceforge.net/p/jabref/bugs/1228/
+Author: Vincent Fourmond <fourmond@debian.org>
+Reviewed-by: gregor herrmann <gregoa@debian.org>
+Last-Update: 2014-05-07
+
+--- a/src/java/net/sf/jabref/BibtexEntry.java
++++ b/src/java/net/sf/jabref/BibtexEntry.java
+@@ -105,13 +105,13 @@
+         }
+         String suffix = "";
+-              if (JabRef.jrf.prefs.getBoolean(JabRefPreferences.WRITEFIELD_ADDSPACES)) {
++              if (JabRefPreferences.getInstance().getBoolean(JabRefPreferences.WRITEFIELD_ADDSPACES)) {
+                       for (int i = maxFieldLength - field.length(); i > 0; i--)
+                               suffix += " ";
+               }
+               String res;
+-              if (JabRef.jrf.prefs.getBoolean(JabRefPreferences.WRITEFIELD_CAMELCASENAME)) {
++              if (JabRefPreferences.getInstance().getBoolean(JabRefPreferences.WRITEFIELD_CAMELCASENAME)) {
+                       if (tagDisplayNameMap.containsKey(field.toLowerCase())) {
+                               res = tagDisplayNameMap.get(field.toLowerCase()) + suffix;
+                       } else {
index 9ed273d..9e1b7df 100644 (file)
@@ -1,3 +1,4 @@
 debian_libs.patch
 mrDlib_jayatana.patch
 generated_JabRefPlugin.java.patch
 debian_libs.patch
 mrDlib_jayatana.patch
 generated_JabRefPlugin.java.patch
+fix-headless-bibtex-output.diff