diff --git a/public/static/text/mn-3-2.json b/public/static/text/mn-3-2.json index ad351aa4..8ef2092d 100644 --- a/public/static/text/mn-3-2.json +++ b/public/static/text/mn-3-2.json @@ -2624,7 +2624,7 @@ }, { "type": "footnote", - "text": "4." + "text": "4. remove?" }, { "type": "footnote", diff --git a/src/components/TextTab.vue b/src/components/TextTab.vue index aa9bbf86..01f4e158 100644 --- a/src/components/TextTab.vue +++ b/src/components/TextTab.vue @@ -157,10 +157,10 @@ export default { return {...entry, parts: this.textParts(text) } }, processFootnote(fnote, language) { - let _0, number, content, text = beautifyText(fnote.text, language, this.$store.state) + let _0, number = '', content = '', text = beautifyText(fnote.text, language, this.$store.state) const m = /^([^\s\.\{\}]+)[\.\s]([\s\S]+)$/.exec(text) // [\s\S]+ needed for matching new lines if (m) [_0, number, content] = m - if (language == 'pali') { + if (language == 'pali' && content) { // find available abbr and create parts for those const abbrs = content.split(';').map(variant => variant.split('–')).filter(vpart => vpart.length > 1) .map(vpart => vpart[1].split(',')).flat().map(a => a.trim()).filter(a => this.$store.state.footnoteAbbreviationKeys.includes(a))