You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Big idea: There is inconsistency as to whether the nextChar of a footnote is present in the subsequent verseObject, based on the presence of a cross-reference to follow both.
Explanation
In the results below (shown in comments), note the third item in verseObjects. For test2 there is a space before "God". For test1 there isn't.
Code
importusfmJSfrom'usfm-js'consttest1=usfmJS.toJSON(`\\v 1 In the beginning \\f + \\fk Alternate translation \\ft Or \\fq At the start\\f* God created.`)consttest2=usfmJS.toJSON(`\\v 1 In the beginning \\f + \\fk Alternate translation \\ft Or \\fq At the start\\f* God created \\x + \\xt John 1:1|JOH 1:1\\xt*\\x*.`)/*test1 === { "headers": [], "chapters": { "1": { "1": { "verseObjects": [ { "type": "text", "text": "In the beginning " }, { "tag": "f", "type": "footnote", "content": "+ \\fk Alternate translation \\ft Or \\fq At the start", "endTag": "f*", "nextChar": " " }, { "type": "text", "text": "God created." } ] } } }}*//*test2 === { "headers": [], "chapters": { "1": { "1": { "verseObjects": [ { "type": "text", "text": "In the beginning " }, { "tag": "f", "type": "footnote", "content": "+ \\fk Alternate translation \\ft Or \\fq At the start", "endTag": "f*", "nextChar": " " }, { "type": "text", "text": " God created " }, { "tag": "x", "content": "+ \\xt John 1:1|JOH 1:1\\xt*", "endTag": "x*" }, { "type": "text", "text": "." } ] } } }}*/
The text was updated successfully, but these errors were encountered:
Big idea: There is inconsistency as to whether the
nextChar
of a footnote is present in the subsequent verseObject, based on the presence of a cross-reference to follow both.Explanation
In the results below (shown in comments), note the third item in
verseObjects
. Fortest2
there is a space before "God". Fortest1
there isn't.Code
The text was updated successfully, but these errors were encountered: