#6507 (Quill asks for saving even when there was no change)
by Luc Saffre · in Developers · assigned to Sharif Mehedi
Résumé
Start editing a comment, click on a pasted image without changing anything. Hit ESC.
Concepts sous-jacents
Commentaires
- 10 mois, 2 semaines ago by Luc Saffre about #6507 (Quill asks for saving even when there was no change) : Yesterday I also adapted a unit test in min9 to make it pass, but without understanding the whole issue. Feel free to adapt my adaptation.
- 10 mois, 2 semaines ago by Sharif Mehedi about #6507 (Quill asks for saving even when there was no change) : I set USE_LXML to True and pushed changes in lino and book repo. Marking this ticket as ready.
- 10 mois, 2 semaines ago by Sharif Mehedi about #6507 (Quill asks for saving even when there was no change) : I just found out that having the lxml parser does not causes the trailing backslash on self-closing tags. Passing html5 formatter to decode already erases the trailing backslash.
- 10 mois, 3 semaines ago by Sharif Mehedi in reply to Luc Saffre about #6507 (Quill asks for saving even when there was no change) : Yes. That did help.
- 10 mois, 3 semaines ago by Luc Saffre in reply to Sharif Mehedi about #6507 (Quill asks for saving even when there was no change) (1 reply) : Maybe this one helps: stackoverflow.com/a/79268324/407239 Or the other way round: Maybe Quill has an option to write self-closing tags?
- 10 mois, 3 semaines ago by Sharif Mehedi about #6507 (Quill asks for saving even when there was no change) (1 reply) : I think, the "/" symbol is added to the self-closing tags by the sanitize function. Wondering how to avoid it.
- 10 mois, 3 semaines ago by Sharif Mehedi about #6507 (Quill asks for saving even when there was no change) : Other difference comes from self-closing tags like img, br. Clicking on an image and de-focusing it removes the backslash before the closing gt (>) symbol of the img tag.
- 10 mois, 3 semaines ago by Sharif Mehedi about #6507 (Quill asks for saving even when there was no change) : When clicking on an image the sorting order of the attributes of "img" tag changes. Event though there's no actual change in html representation, the string form of the content differs from the old content.
- 10 mois, 3 semaines ago by Luc Saffre about #6507 (Quill asks for saving even when there was no change) : Created new Ticket #6507 (Quill asks for saving even when there was no change).