Ask Your Question
0

Applying a paragraph style overwrites direct formatting

asked 2020-01-23 23:06:11 +0200

lomacar gravatar image

updated 2020-01-25 00:14:22 +0200

Somehow I haven't noticed this before, so I don't know if it is normal, but when I apply a paragraph style to a paragraph, it is removing all direct formatting, such as italics, from the paragraph. This should obviously not happen. Is it a bug?

I thought that maybe the paragraph style itself is telling the text to be non-italic, but when I check on the organize tab, there is no mention of Italics or Not Italics. So, I don't understand why it is doing this. Any way to avoid it? It is really annoying to have to redo all direct formatting within paragraphs every time you apply a paragraph style.

UPDATE: This behaviour stopped happening, for now at least. But, as I mentioned in the comments, direct formatting is still lost when undoing/redoing the paragraph style change. I upgraded to 6.3 and it is still the same. I wonder if anyone else has this bug. But it is pretty minor as long as it only happens when redoing a style change.

edit retag flag offensive close merge delete

Comments

I cannot reproduce your problem with LibO 6.3.4. Which LibO version do you use? Can you share a sample document?

RGB-es gravatar imageRGB-es ( 2020-01-23 23:42:08 +0200 )edit

6.2.0.3 I didn't know there was an update. It has stopped doing it now! WIth a very strange exception, if I apply the style and undo it, and then redo it, the italics disappear! At that point undoing does not restore the italics. Weird. I will update and see if that helps.

lomacar gravatar imagelomacar ( 2020-01-24 01:40:56 +0200 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2020-01-24 10:41:23 +0200

  1. Applying a paragraph style will never reset neither direct formatting, nor styles, that are applied to characters. If you select part of a paragraph, and use toolbar button to make it bold, or apply "Emphasis" character style to it, and then apply any paragraph style, then the emphasized parts will stay as they were (bold or italic...).
  2. Applying a paragraph style will always reset all paragraph properties, be it applied directly or by previous style. Every paragraph style defines a whole set of paragraph properties, even if those properties are not defined in the style itself: those that are omitted in the paragraph style, will be taken from its parent style in the inheritance hierarchy. If a property is not defined in any style in the inheritance chain, it will be taken from Writer's defaults. So you cannot have a style that does not set some of paragraph properties on its application.
edit flag offensive delete link more
0

answered 2020-01-24 10:02:40 +0200

ebot gravatar image

updated 2020-01-24 10:02:55 +0200

Somehow I haven't noticed this before, so I don't know if it is normal, but when I apply a paragraph style to a paragraph, it is removing all direct formatting, such as italics, from the paragraph. This should obviously not happen. Is it a bug?

No matter what the result looks like, it seems to me that you have not yet properly understood the paragraph style system.

You can also create different paragraph styles for different font specifications so that you do not need direct formatting.

Just because you can do something, it doesn't make sense to do it.

edit flag offensive delete link more

Comments

What are you talking about? Why do you think I don't understand the paragraph style system? I understand it very well. We have determined that my problem is a bug.

lomacar gravatar imagelomacar ( 2020-01-24 21:06:05 +0200 )edit

@lomacar "Wehave determined that my problem is a bug." Sorry but none of the answers nor comments have determined it was a bug. You have determined it. @RGB-es asked you to share a sample document, for the community to see what's the problem and behavior you are encountering, once the community will try your sample, then they can determine if it's a bug or a normal misbehavior or something else.

ProLogic gravatar imageProLogic ( 2020-01-25 03:54:25 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-01-23 23:06:11 +0200

Seen: 56 times

Last updated: Jan 25