From 342c8af747587420a1b5da0d75bb379bfabe60bc Mon Sep 17 00:00:00 2001 From: nmemmert <67961292+nmemmert@users.noreply.github.com> Date: Tue, 27 Oct 2026 10:14:54 -0400 Subject: [PATCH] Devotion: keep the space where a footnote marker splits the verse text Co-Authored-By: Claude Sonnet 5.5 --- public/devotion-view.js | 2 +- public/sw.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/devotion-view.js b/public/devotion-view.js index 62293ea..10a7cc4 100644 --- a/public/devotion-view.js +++ b/public/devotion-view.js @@ -5,7 +5,7 @@ const dvDay = (d = new Date()) => `${d.getFullYear()}-${String(d.getMonth() + 1) const dvDiff = (a, b) => Math.round((new Date(b + 'T12:00:00') - new Date(a + 'T12:00:00')) / 864e5); /** The text of verses v..ve in a chapter, footnote markers left out. */ function dvText(book, c, v, ve) { - const out = []; for (const b of book.chapters[c - 1]) if (b[0] === 'v' && b[1] >= v && b[1] <= (ve || v)) out.push(b[2].map(p => typeof p === 'string' ? p : Array.isArray(p) ? p[1] : '').join('').replace(/\s+/g, ' ').trim()); + const out = []; for (const b of book.chapters[c - 1]) if (b[0] === 'v' && b[1] >= v && b[1] <= (ve || v)) out.push(b[2].map(p => typeof p === 'string' ? p : Array.isArray(p) ? ' ' + p[1] + ' ' : ' ').join('').replace(/\s+/g, ' ').replace(/\s+([,.;:!?])/g, '$1').trim()); return out.join(' '); } function dvVerseOfDay() { diff --git a/public/sw.js b/public/sw.js index 270b1b3..377f5c1 100644 --- a/public/sw.js +++ b/public/sw.js @@ -1,5 +1,5 @@ // App-shell cache only; Seafile/API traffic always goes to the network. -const CACHE = 'hub-v102'; +const CACHE = 'hub-v103'; const SHARE = 'hub-share'; // files shared into the app from other apps, held until the person picks a folder const SHELL = ['/icon.svg', '/manifest.webmanifest', '/icons/icon-192.png', '/icons/apple-touch-icon.png'];