majlis-erc / manuForma

The manuForma application is designed to make TEI data creation and distributed editing faster and easier.
6 stars 1 forks source link

MSS: Text editor – unexpected behavior #636

Closed mMoliere closed 1 month ago

mMoliere commented 2 months ago

@wsalesky The new text editor capabilities work great. Thank you again for that!

There is just one problem: manuForma can't distinguish between linebreaks that are intended by the users and indentations in the code that are generated by Oxygen XML etc.

Here is an example where manuForma added <lb> elements that shouldn't be there:

Screenshot 2024-07-02 at 18-15-29 Updates from online corrections  data_manuscripts_tei_1441 xml by mMoliere · Pull Request #742 · majlis-erc_majlis-data

Is this something that can be fixed by modifying the code? From the top of my head, I would think that <lb> elements should not be added when there are 3 or more spaces after the linebreak. Is that feasible?

wsalesky commented 2 months ago

@mMoliere please try this. https://github.com/majlis-erc/manuForma/pull/637