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


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":

<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:name="P2" style:family="paragraph" style:parent-style-name="Title">
<style:text-properties officeooo:paragraph-rsid="00063317"/>
<style:style style:name="T1" style:family="text">
<style:text-properties officeooo:rsid="00063317"/>

and the actual content:

<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>

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

Thanks for your help,

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


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.