Apache OpenOffice (AOO) Bugzilla – Issue 55018
enhance character style formatting behaviour
Last modified: 2013-02-07 22:35:04 UTC
Create a simple character style using underlining, bolding, or other text effects. Selecting new text and setting the character style to this new style should properly change the text. However, if the same type of manual formatting (underlining, bolding, etc) has *ever* been used on the selected text (either added or removed), such attributes in character styles are ever after ignored for that selection. Setting either the character or paragraph style back to Default does not help, nor does closing and re-opening the document. (Furthermore, setting the character style back to Default does not remove any manual text color, underlining, bolding, etc, which is unexpected... another bug? Setting the character style to Default should do just that, set it to Default and remove all styling, manual or otherwise...?) Attaching sample case. Includes custom character styles MTIndex, MTIndexUnderlined, and MTIndexUnderlined2. The first "Created" on line 3 has had underlining and bold manually set, and now setting the style to either underlined character styles fails to set any underline, and all three fail to make the text bold. Incidentally, this might be related to what I observed for Issue 55016.
Created attachment 29853 [details] Sample of how character styles can be broken by manual formatting
Cannor rpeoduce this with OO 2.0.1.
closed.
Just tried with a fresh new Writer doc in 2.01, still seeing this behavior but realized I need to clarify. The root issue seems to be that manual formatting overrides styles, but with non-intuitive behaviour. Try this: 1. Ceate a character style NoUnderlining, with Font Effects -> Underlining set to (Without) 2. Manually set underlining for a chunk of text 3. Select that text and set the character style to NoUnderlining 4. Text is still underlined...? Or the reverse: 1. Create a character style Underlined, with Font Effects -> Underlining set to Single 2. Select some text and set the character style to Underlined 3. Manually set no underlining for that same chunk of text 4. Character style for that text is shown as Underlined, but it is not underlined, and setting to Default and back to Underlined still shows no underlining I've also just discovered some otherwise strange character style behaviour: 1. Select three words within a single line of text, and set the character style to Underlined 2. Select the whole line, and manually set no underlining -- underlining should disappear, including from the three words with the character style of Underlined 3. Select one of the character-styled words, and set the character style to Default -- the selected word will remain non-underlined, as expected, but the two remaining styled words will suddenly be underlined again ... ? Please have a look at this again. Thank you, -- Erik
I now understand. Reopened issue; it is a good enhancement.
As describe, character styles do not always work as expected (they work logically in a way, but not really user friendly). In MS Word e.g. there is a tri-state option for those thing, which means the third state is kind of "do not change" option, so a character style could override a hard format or not.