Skip to content

Commit

Permalink
Merge pull request #188 from abbasou/abbasou-patch-1-kjv-fix-187
Browse files Browse the repository at this point in the history
Remove extraneous line breaks in KJV verses #187
  • Loading branch information
tim-hub authored May 14, 2024
2 parents 15858cb + eb9777e commit 1f5cd6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/verse/BaseVerseFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export abstract class BaseVerseFormatter {
text +=
' ' + verseNumberFormatted + verse.text.trim().replaceAll('\n', ' ')
} else {
text += '> ' + verseNumberFormatted + verse.text.trim() + '\n'
text += '> ' + verseNumberFormatted + verse.text.trim().replace(/\r\n|\n|\r/g, " ") + "\n" // Remove extraneous line breaks in KJV verses.
}
})
console.debug('text', text)
Expand Down

0 comments on commit 1f5cd6e

Please sign in to comment.