White space problem in EAD XML

Having trouble installing Oxygen? Got a bug to report? Post it all here.
jdcmh
Posts: 1
Joined: Wed Oct 20, 2010 8:47 pm

White space problem in EAD XML

Post by jdcmh »

I am preparing EAD XML and have noticed that white spaces are added in my <unittitle> and other elements, which carry over when I import into my CMS. Essentially, my short item and file-level titles are broken across two lines which appears to be not just formatting, but also inserting spaces picked up by my CMS.

My workflow has been to "Join and Normalize" the entire file, then "Format and Indent."

My Editor / Format / XML settings are set to preserve empty lines, preserve line breaks in attributes, and indent inline elements. Schema aware format and indent is checked. I use version 12.0 of oxygen.

Can anyone suggest what the issue is with my process that is causing this problem? Any help would be very appreciated. Thank you.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: White space problem in EAD XML

Post by sorin_ristache »

Hello,

I'm guessing that the total length of the title that appears broken on two lines at the end of the Format and Indent action exceeds the maximum line length set in the Line width - Format and Indent option that is available from menu Options -> Preferences -> Editor -> Format. In this case the Format and Indent action will insert a line break to limit the line length to that value. If you want to preserve the title you should add unittitle and the names of the other XML elements to the Preserve space list that is available from Options -> Preferences -> Editor -> Format -> XML. The content of the elements from the Preserve space list will not be broken by Format and Indent.


Regards,
Sorin
Post Reply