Format & indent does nothing. 10.0 OOXML file

Having trouble installing Oxygen? Got a bug to report? Post it all here.
pbw
Posts: 24
Joined: Sat Jul 12, 2008 3:46 am
Location: Brisbane, Australia

Format & indent does nothing. 10.0 OOXML file

Post by pbw »

Any ideas as to why Format & Indent makes no changes to an OOXML file I open? I get asked about formatting and indenting when I open, because of the lenght of the line. I answer yes, but I still get the <w:wordDocument/> element on a single line.

When I select all and either try the Ctrl-I or the Format & Indent menu item, nothing happens.

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

Re: Format & indent does nothing. 10.0 OOXML file

Post by sorin_ristache »

Hello,

Usually the action Format and Indent (default shortcut Ctrl + Shift + P) has no effect on the edited XML document when the root element has the attribute xml:space="preserve". This attribute specifies that the current form of the document must be preserved. Does your OOXML file contain this attribute?


Regards,
Sorin
pbw
Posts: 24
Joined: Sat Jul 12, 2008 3:46 am
Location: Brisbane, Australia

Re: Format & indent does nothing. 10.0 OOXML file

Post by pbw »

Sorin,

Yes it does. I hadn't noticed it. Thanks.

Peter
Post Reply