add patch for upstream bug #1240
authortony mancill <tmancill@debian.org>
Thu, 22 Oct 2015 03:45:00 +0000 (20:45 -0700)
committertony mancill <tmancill@debian.org>
Thu, 22 Oct 2015 03:45:00 +0000 (20:45 -0700)
http://sourceforge.net/p/jabref/bugs/1240/

debian/patches/series
debian/patches/upstream_1240.patch [new file with mode: 0644]

index 9e1b7df..5307253 100644 (file)
@@ -2,3 +2,4 @@ debian_libs.patch
 mrDlib_jayatana.patch
 generated_JabRefPlugin.java.patch
 fix-headless-bibtex-output.diff
+upstream_1240.patch
diff --git a/debian/patches/upstream_1240.patch b/debian/patches/upstream_1240.patch
new file mode 100644 (file)
index 0000000..6b21624
--- /dev/null
@@ -0,0 +1,35 @@
+commit dd4676b6cc75f0ce38cf44843ab7abea89249fb1
+Author: Leonardo Haddad <leeohaddad@usp.br>
+Date:   Tue Oct 28 01:46:39 2014 -0200
+
+    Fixed bug #1240. Now, strings with length of one character can be included and no exception is thrown by the system.
+
+--- a/src/help/About.html
++++ b/src/help/About.html
+@@ -81,7 +81,8 @@
+         David Weitzman,
+         Seb Wills,
+         John Zedlewski,
+-        Waluyo Adi Siswanto</p>
++        Waluyo Adi Siswanto,
++        Leonardo Haddad Carlos</p>
+         <h2>Thanks to:</h2>
+--- a/src/java/net/sf/jabref/BibtexString.java
++++ b/src/java/net/sf/jabref/BibtexString.java
+@@ -1,4 +1,4 @@
+-/*  Copyright (C) 2003-2011 JabRef contributors.
++/*  Copyright (C) 2003-2014 JabRef contributors.
+     This program is free software; you can redistribute it and/or modify
+     it under the terms of the GNU General Public License as published by
+     the Free Software Foundation; either version 2 of the License, or
+@@ -67,7 +67,7 @@
+         }
+         public static final Type get(String name) {
+-              if (name.length() == 0) {
++              if (name.length() <= 1) {
+                       return OTHER;
+               }
+             if (!(name.charAt(1) + "").toUpperCase().equals(