Preserve/strip space elements: saved sets

Are you missing a feature? Request its implementation here.
dsewell
Posts: 125
Joined: Mon Jun 09, 2003 6:02 pm
Location: Charlottesville, Virginia USA

Preserve/strip space elements: saved sets

Post 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.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
george
Site Admin
Posts: 2097
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi David,

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

Best Regards,
George
dsewell
Posts: 125
Joined: Mon Jun 09, 2003 6:02 pm
Location: Charlottesville, Virginia USA

Post by dsewell »

This sounds like a useful feature, so I will look forward to this solution.
Post Reply