Open Zachiah opened 4 years ago
I'd noticed that before; it comes from the source material which is in the file eng-kjv.osis.xml
here: https://github.com/seven1m/open-bibles/
<verse osisID="Exod.1.1" sID="Exod.1.1.seID.01585" n="1" />Now these
<transChange type="added">are</transChange> the names of the children of Israel, which came into Egypt; every man and his household came with Jacob.
I think it would be safe to strip newlines from the XML during parsing. I'll see about doing that.
Thanks for the bug report!
Thank you you might be able to just replace all whitespace with a space because john 3:16 kjv for example also starts with a margin
for now I'll just use text.strip.gsub("\n"," ") in my rails app
Extra examples:
Coming back to this as I've found many, many examples of this in the KJV. Attempting to use Obsidian Bible Reference plugin, but output formatting is almost unusable. Will open issue over there to see if there is a fix post-api call, but would be nice to fix it on the source side I would think.
go to http://bible-api.com/Exodus+1:1?translation=kjv and it has a random newline in the middle