From: Vincent N. <vin...@gm...> - 2021-12-17 08:41:21
|
Thank you very much. I'd like to make a suggestion: in a future version, please make indent=no the default serialization option for when a user opens an XML document. Users do not want the editor to make changes to a document when they open it. All of these newlines and extra whitespaces are harmful to the XML document, especially TEI/XML transcriptions with many many in-text nested tags. I've recently started using eXide as an editor for collaborators to use to make and revise their XML documents, and I'd estimate that in the past week about 30 documents, some of them very large, have been corrupted with extra whitespace that will need to be manually removed again. Simply by opening the document in eXide, making a small correction, and saving in eXide. This is quite a setback. I'm relieved we noticed this was happening quite early, but I probably should have noticed earlier. Sorry for cross-posting. Best wishes, Vincent On Thu, Dec 16, 2021 at 7:10 PM Joe Wicentowski <jo...@gm...> wrote: > Hi Vincent, > > eXide v3.2.0 added fine-grained serialization preferences, including the > ability to control indentation when opening an XML document in eXide. See > the documentation on this at > https://github.com/eXist-db/eXide/blob/develop/docs/docs.md#options-for-xml-documents-loaded-from-the-database > . > > I've also posted a screenshot of the serialization portion of the > preferences to the issue that you cross-posted: > > https://github.com/eXist-db/eXide/issues/400#issuecomment-996043866 > > Joe > > On Thu, Dec 16, 2021 at 2:41 AM Vincent Neyt <vin...@gm...> > wrote: > >> Hello list, >> >> Where in the eXide code can I switch off the "auto-indent" feature that >> happens when you open an XML document in eXide? >> >> When I open a document formatted like this: >> >> <emptyTemplate>This is an ex<del>e</del><add>a</add>mple.</emptyTemplate> >> >> eXide will automatically insert hard returns and spaces: >> >> <emptyTemplate>This is an ex<del>e</del> >> <add>a</add>mple.</emptyTemplate> >> >> Where can I change the code to prevent this from happening, and to make >> eXide open the documents as they are instead of automatically formatting >> them and indenting nested tags? >> >> It took me a while to notice this was happening, and it will take many >> hours of manual work to correct all of the errors (by way of unwanted extra >> whitespace) that have crept into my project's XML transcriptions because of >> this. >> >> best, >> Vincent Neyt >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> > |