Page 1 of 1

Format & indent does nothing. 10.0 OOXML file

Posted: Mon Nov 17, 2008 5:09 am
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

Re: Format & indent does nothing. 10.0 OOXML file

Posted: Mon Nov 17, 2008 11:21 am
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

Re: Format & indent does nothing. 10.0 OOXML file

Posted: Wed Nov 19, 2008 12:44 am
by pbw
Sorin,

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

Peter