Skip to content

Commit

Permalink
HACK: fix rendering of anonymous bars
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvire committed Dec 17, 2024
1 parent f532566 commit 27933f4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib/components/ScriptureViewSofria.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,16 @@ LOGGING:
console.warn('%s ignored: %s', usfmType, text);
}
};
const fixText = (text) => {
if (text === '| default=""') {
// HACK: Proskomma adds default="" to anonymous bars in text
// See https://community.scripture.software.sil.org/t/issues-with-cross-references-in-pwa-modern/4476
text = '| ';
}
return text;
};
const addText = (workspace, text) => {
text = fixText(text);
if (scriptureLogs?.text) {
console.log('Adding text:', text);
}
Expand Down

0 comments on commit 27933f4

Please sign in to comment.