XHTML empty tags reformatted

Oxygen general issues.
gwolfgang
Posts: 5
Joined: Mon Jan 28, 2008 1:17 am

XHTML empty tags reformatted

Post by gwolfgang »

Oxygen 9.1, build 2007122116

When I open an XHTML document containing empty tags (for use in background graphics ), e.g. <div class="background-roundcorner"></div>, then edit in author mode, and when finished go back to text mode, the empty tags have been automatically removed and changed into one-tag formulations, with opening and closing in the same tag (OK for some XHTML tags like <br />, but not for <div>). The empty tags themselves are not edited in author mode, only the normal text content paragraphs.

Before author -mode editing:

Code: Select all

<div class="background-roundcorner"></div>
After autor editing:

Code: Select all

<div class="background-roundcorner" />
In XHTML this will make the layout break in the browser. I have tried to find out how to turn off the automatic reformulation of the tags, but did not find it.

Thanks in advance!
Gerhard
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

This is the first problem reported in this post where a reply was also posted.


Regards,
Sorin
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: XHTML empty tags reformatted

Post by sorin_ristache »

Hello,

The pretty-print options are applied when transforming the Author document to the text form of Text page when you switch from Author page to Text page. You have to select the option Expand empty elements available in Preferences -> Editor / Format / XML.


Regards,
Sorin
Post Reply