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


On 14/06/15 15:17, Brian Barker wrote:
At 14:18 14/06/2015 -0300, Leonardo M. Ramé wrote:
I'm using LO 4.4.3.2 on Linux and found something that looks like a
bug when inserting the attached rtf file while using the
test_template.ott template (also attached). If I open LO Writer, then
go to Insert -> Document... -> "cabecera.rtf" I get the result you can
see in "correct.png" file.

But, if after opening LO Writer, I open the template
"test_template.ott" (btw an empty template), ...

I don't think you can ever describe a template as "empty": if it had no
contents or function, you would not be using it.


You are right, this "empty" template was just an example as clean as possible for you to test. The real template should contain a custom header and/or footer.

... then go to Insert -> Document -> "cabecera.rtf", the tabs on the
1st line of the rtf are removed, getting the image shown in "wrong.png".

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

Does anyone know if there's a way to workaround this?

o Reinsert the missing tab stop? (You can easily copy the tab stop from
a subsequent paragraph - possibly using the Format Paintbrush.)

I can't do that, the purpose of this it to be used in a Libreoffice headless workflow.


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.

Is this a bug?

Don't know.

I trust this helps.

Brian Barker




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