Further insanity.

Due to the irregularities in how USF-JSON data structures are and the
subsequent annoyances with attempting to render it from a
paragraph-centric format to an inline format (e.g. quoting singular
verses), I'm seriously tempted to contrive my own.
This commit is contained in:
Benjamin A. Shelton 2026-10-14 19:31:58 -06:00
commit 811df2d520
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -465,7 +465,7 @@ func (v *VerseSet) String() string {
// Noop
case ContentLineBreak:
if v.SkipLineBreaks {
//sb.WriteByte(' ')
sb.WriteByte(' ')
} else {
sb.WriteByte('\n')
if i+1 < len(v.Verses) && v.Verses[i+1].PoemOffset == 0 {
@ -518,6 +518,7 @@ func (v *VerseSet) String() string {
s := sb.String()
s = strings.ReplaceAll(s, "--", "—")
s = strings.ReplaceAll(s, " ", " ")
s = strings.TrimSpace(s)
return s
}