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


On 14/06/15 15:54, Brian Barker wrote:
At 15:30 14/06/2015 -0300, Leonardo M. Ramé wrote:
On 14/06/15 15:17, Brian Barker wrote:
Your template contains a definition of paragraph style "P1" including
<style:tab-stops />
and later the reference to it:
<text:p text:style-name="P1" /> .

I'm guessing that this is why the first paragraph of your inserted
file loses its tab stop and inherits the default arrangement of tab
stops.

Thanks!. I can't see that style in Styles and Formatting, where is it?.

Neither can I - but it appears in the content.xml file in the template.

o Construct a new (emptier?) template without the presumably unwanted
paragraph style definition.

This is what I'll do when I figure out where's the offending style.

If I create a template with header and footer, I don't get any "P1" and
the later reference is
<text:p text:style-name="Standard" /> .
Then the document imports correctly.

I can't guess how you are creating "P1". Are you inheriting the template
from somewhere?


No, just open LibreOffice Writer, then Save As -> Select ODF Text Document Template (*.ott), assign a name and click Save.

Uncompressed the ott file and no P1 style found.

Then, I added a footer, saved as template, checked again and no P1 style found.

Then added a PNG image to the footer, checked again and also no P1 style found.

So, the ott file was fixed.

But, I was still facing the removed tab issue, and found an error in my Python UNO script (I'm batch processing those documents using UNO scripting). Fixed my error and everything is rendering as expected.

Thank you very much Brian.

--
Leonardo M. Ramé
http://leonardorame.blogspot.com

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