Commits

Luke Plant committed d34115c

Fixed small bug in get_bible_text that was adding unnecessary spaces in some cases.

Comments (0)

Files changed (1)

bibleverses/sword.py

             mod.Key(e.LowerBound())
             while mod.Key().compare(e.UpperBound()) <= 0:
                 out.append(conv(mod))
-                out.append(u" ")
+                if not out[-1].endswith("\n") and not out[-1].endswith(" "):
+                    out.append(u" ")
                 mod.increment(1)
         else:
             mod.Key(lk.getElement(i))