From 011b9bfc29dd094a59670a2559d5b497fd65276d Mon Sep 17 00:00:00 2001 From: tim-hub Date: Sun, 19 Jan 2025 20:43:00 +1300 Subject: [PATCH] code format --- src/verse/BaseVerseFormatter.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/verse/BaseVerseFormatter.ts b/src/verse/BaseVerseFormatter.ts index 1b8d4e3..38e8416 100644 --- a/src/verse/BaseVerseFormatter.ts +++ b/src/verse/BaseVerseFormatter.ts @@ -55,17 +55,16 @@ export abstract class BaseVerseFormatter { } this.verses.forEach((verse, index) => { let singleVerseText = verse.text.trim() - if ( - index === this.verses!.length - 1 && - singleVerseText.endsWith('
') // Remove the last
tag that appears in LSB verses. - ) { - singleVerseText = singleVerseText.slice(0, -5) + if (index === this.verses!.length - 1 && singleVerseText.endsWith('
')) { + // Remove the last
tag that appears in LSB verses. + singleVerseText = singleVerseText.slice(0, -5) } const verseNumberFormatted = this.formatVerseNumber(verse.verse) if (this.settings?.verseFormatting === BibleVerseFormat.Paragraph) { text += ' ' + verseNumberFormatted + singleVerseText.replaceAll('\n', ' ') } else { - text += '> ' + verseNumberFormatted + singleVerseText.replace(/\r\n|\n|\r/g, ' ') + '\n' // Remove extraneous line breaks in KJV verses. + text += '> ' + verseNumberFormatted + singleVerseText.replace(/\r\n|\n|\r/g, ' ') + '\n' + // Remove extraneous line breaks in KJV verses. } }) console.debug('text', text)