41c071007d5ee16651c95f28d5d586db6962110b
[debian/jabref.git] / debian / patches / fix-headless-bibtex-output.diff
1 Description: fix headless BibTeX output
2 Origin: vendor
3 Bug: http://sourceforge.net/p/jabref/bugs/1228/
4 Bug-Debian: https://bugs.debian.org/723100
5 Forwarded: http://sourceforge.net/p/jabref/bugs/1228/
6 Author: Vincent Fourmond <fourmond@debian.org>
7 Reviewed-by: gregor herrmann <gregoa@debian.org>
8 Last-Update: 2014-05-07
9
10 --- a/src/java/net/sf/jabref/BibtexEntry.java
11 +++ b/src/java/net/sf/jabref/BibtexEntry.java
12 @@ -105,13 +105,13 @@
13          }
14  
15          String suffix = "";
16 -               if (JabRef.jrf.prefs.getBoolean(JabRefPreferences.WRITEFIELD_ADDSPACES)) {
17 +               if (JabRefPreferences.getInstance().getBoolean(JabRefPreferences.WRITEFIELD_ADDSPACES)) {
18                         for (int i = maxFieldLength - field.length(); i > 0; i--)
19                                 suffix += " ";
20                 }
21  
22                 String res;
23 -               if (JabRef.jrf.prefs.getBoolean(JabRefPreferences.WRITEFIELD_CAMELCASENAME)) {
24 +               if (JabRefPreferences.getInstance().getBoolean(JabRefPreferences.WRITEFIELD_CAMELCASENAME)) {
25                         if (tagDisplayNameMap.containsKey(field.toLowerCase())) {
26                                 res = tagDisplayNameMap.get(field.toLowerCase()) + suffix;
27                         } else {