Control: tag -1 +patch

  Hey, looks like it wasn't too hard.

  Patch attached. I'll finally be able to make my
"prepare-latex-submission" script ;-)...

  Cheers,

      Vincent
--- jabref-2.10+ds.orig/src/java/net/sf/jabref/BibtexEntry.java
+++ jabref-2.10+ds/src/java/net/sf/jabref/BibtexEntry.java
@@ -105,13 +105,13 @@ public class BibtexEntry
         }
 
         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 {

Reply via email to