Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi!

When I create a new Writer document, each element I enter in the document (like a heading or paragraph) adds new elements to <office:automatic-styles> in "content.xml", even though I do not use any direct formatting. So, selecting style "Title", entering the title, then selecting "Text Body" and entering a paragraph creates the following automatic styles in "content.xml":

<office:automatic-styles>
<style:style style:name="P1" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:text-properties officeooo:paragraph-rsid="00063317"/>
</style:style>
<style:style style:name="P2" style:family="paragraph" style:parent-style-name="Title">
<style:text-properties officeooo:paragraph-rsid="00063317"/>
</style:style>
<style:style style:name="T1" style:family="text">
<style:text-properties officeooo:rsid="00063317"/>
</style:style>
</office:automatic-styles>

and the actual content:

<office:body>
<office:text>
<text:p text:style-name="P2"><text:span text:style-name="T1">This is my title</text:span></text:p> <text:p text:style-name="P1"><text:span text:style-name="T1">This is a text body paragraph.</text:span></text:p>
</office:text>
</office:body>

Now, I can delete the unwanted direct formatting by clicking "Format - Clear direct formatting". Then, the content looks as nice and clean:

<text:p text:style-name="Title">This is my title</text:p>
<text:p text:style-name="Text_20_body">This is a text body paragraph.</text:p>

However, this removal of unnecessary direct formatting is not very appropriate, as I sometimes do have direct formatting (a subscript for instance). Is it possible to suppress Writer's behaviour of defining those meaningless automatic styles? And if not, is it possible to get rid of only the meaningless direct formatting, i.e. those <style:style> elements, that do not contain any formatting attributes?

I'm using LibreOffice Version 4.0.3.3.

Thanks for your help,
Holger



--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.