Open elsylambert opened 3 months ago
@PhotoNomad0 Please add in details to this issue.
Here is an example of the problem, When I open unfoldingWord/en/ult on the QA server to Psa 140:8, and then click to edit, it shows:
The core of the problems looks like a bug in the usfm-js library: in converting json to USFM the original JSON object is modified. In the process the end tag (\qs*
) gets corrupted. Updating the library to fix the error and added a unit test for the case. Also updated the unit tests to fail if the JSON object is modified. @elsylambert
@elsylambert There is a fix in dev build v2.4.1
When you open unfoldingWord/en/ult on the QA server to Psa 140:8, and then click to edit, it should show:
@elsylambert note this should fix both the corruption of the qs end tag, also fix for handling white space such as spaces with newline after the tags.
Note - The core of the fix is in https://github.com/unfoldingWord/usfm-js/pull/107
Verified in v2.4.1 build 01e3183 QA, Usfm markers \qs and \qs* are displayed correctly.
GWE is changing \qs Selah \qs to \qs \qs Selah.