Page 1 of 1

Preserve/strip space elements: saved sets

Posted: Thu Aug 17, 2006 9:18 pm
by dsewell
Enhancement suggestion:

Add the possibility to save and load sets of elements to use in the "Preserve space elements" and "Strip space elements" windows of the menu Editor / Format / XML.

This would be extremely useful to people who use different schemas/DTDs, or who regularly edit different kinds of documents. For example, when editing XHTML it is usually not a problem to add whitespace within paragraphs, table cells, etc.; but when editing TEI documents one often wants to preserve whitespace precisely. So the formatting requirements are different.

One could imagine a user-created list of pretty-print definitions like
  • - XHTML
    - TEI strict whitespace
    - TEI loose
    - RDF file
etc.

Posted: Fri Aug 18, 2006 3:34 pm
by sorin_ristache
Hello,

I think the number of common elements is small (I can find only 4: title, div, p, table, because body does not matter). So the effort to change the list of preserve space elements is less with the current approach (just add/remove the title, p and table elements to/from the preserve space list) than defining some sets of preserve space elements and switch from one set to another when the type of the edited document is switched. Managing the sets of elements in the Editor / Format / XML preferences panel complicates the user interface without much benefit for the user.

Regards,
Sorin

Posted: Tue Aug 22, 2006 10:10 am
by george
Hi David,

We plan to allow project level preferences and that should (almost) cover your request I think.

Best Regards,
George

Posted: Tue Aug 22, 2006 4:28 pm
by dsewell
This sounds like a useful feature, so I will look forward to this solution.