We're currently migrating from Ask to Discourse, read the details here

Ask Your Question

Writer: text layout not updated in tables after style change [closed]

asked 2013-09-13 09:17:04 +0200

ajlittoz gravatar image

I changed a paragraph style attribute (justified -> left align) because justification inserted too much space between words in rather narrow table columns. Though my text is formatted only through styles (no manual overriding styling), text layout in the tables was not updated as expected. I had to change the paragraph to some other style and restyle it to see the intended layout.

Have I missed something? Is there something special with the tables which prevents the usual auto-update when a style is changed? Is there a configuration parameter locking auto-update?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2015-11-08 08:37:24.179699


Which LO version are you using? Can you create an example document that exhibits the problem and attach it for others to test?

oweng gravatar imageoweng ( 2013-09-13 14:15:07 +0200 )edit

3 Answers

Sort by » oldest newest most voted

answered 2013-09-14 14:48:24 +0200

ajlittoz gravatar image

updated 2013-09-14 14:49:10 +0200

Thanks for the expertise.

There has been a lot of revisions on the document lately and some of the editors did not follow the rules ;-(

Most of the tables were created with copy-and-paste to guarantee they all look the same. I supose then some direct formatting was applied to the "master" table and trouble cascaded from there on.

Is there any easy way (apart from dumping XML) to detect direct formatting?

Would the following procedure restore everything without losing the decoration brought by the character styles?

  1. Select all (from the Edit menu)
  2. Right click and choose Clear direct formatting (contextual menu)

Or is it necessary, as you suggest in your answer, to reapply the style in the table cells?

edit flag offensive delete link more


There is no method I know of visually determining which pieces of content have direct formatting applied (which I find a dreaded nuisance). Using "Clear formatting" from the Apply Style toolbar pull-down does not appear to remove character styles, but you do have to re-apply the paragraph style. You will need to do this to each table contents area i.e., each table without the header row.

oweng gravatar imageoweng ( 2013-09-15 16:47:48 +0200 )edit

I feared your answer but I was expecting it. There is a proof-reading step anyway. Reformatting will be done (slowly) during this stage.

Thanks again.

ajlittoz gravatar imageajlittoz ( 2013-09-16 08:59:09 +0200 )edit

Apparently, Clear direct formatting is all there is to do. With a well-behaved document, no need to re-apply the paragraph style: everything reverts to the intended layout as soon as direct formatting is cleared.

ajlittoz gravatar imageajlittoz ( 2013-09-21 13:56:27 +0200 )edit

answered 2013-09-13 14:58:19 +0200

ajlittoz gravatar image


Behavior is the same under LO and 4.1. Change attachment extension to .odt before opening it. This is an extract of a long document, which prohibits manual update on all paragraphs.

Offending style is customised Table Contents. In first table, layout is correct because style has been manually reapplied after Default styling. Second table is left as is after style update without manual fiddling. Matter may be complicated by the fact that the document is template-based.

edit flag offensive delete link more

answered 2013-09-13 14:19:30 +0200

oweng gravatar image

updated 2013-09-14 01:49:00 +0200

I can't duplicate this behaviour here under GNU/Linux running LO v4.1.0.4 however it may relate to custom styles, rather than the default Table Contents and Table Heading paragraph styles.

EDIT: Thanks for providing the example. It appears the tables have had direct formatting applied at some point. The content.xml shows this:

<style:style style:name="P3" style:family="paragraph" style:parent-style-name="Table_20_Contents">
    <style:paragraph-properties fo:text-align="justify" style:justify-single-word="false"/>

While styles.xml shows:

<style:style style:name="Table_20_Contents" style:display-name="Table Contents" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
    <style:paragraph-properties text:number-lines="false" text:line-number="0"/>
    <style:text-properties fo:font-size="10pt"/>

The first table is using the Table_20_Contents style (i.e., left-aligned), while the second table is using the P3 style (i.e., justified). If I highlight the second table contents and select "Clear formatting" from the Apply Style toolbar pull-down and then re-apply the Table Contents paragraph style, the table contents align as expected.

edit flag offensive delete link more

Question Tools



Asked: 2013-09-13 09:17:04 +0200

Seen: 1,246 times

Last updated: Sep 14 '13