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:
parent
f7d5803945
commit
811df2d520
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue