Apache OpenOffice (AOO) Bugzilla – Issue 103348
Format Default on selection should not reset paragraph properties
Last modified: 2017-05-20 11:11:24 UTC
Steps to reproduce the problem On a blank presentation, enter a text box. Using Format, paragraph, apply some paragraph formatting, e.g. Indent - before text: 1 cm. Apply some text formatting. Select a few words of the text, then choose "Format - default" Expected behaviour: Format - default resets the properties of the selected text to the default. Observed behaviour: Paragraph properties are also reset. Paragraph properties should be reset if no text is selected, or if the whole paragraph is selected. Paragraph properties should not be reset if the user wants to reset formatting of selected text. This is how it works in writer, and how it should work in Impress.
Sorry, not reproducible. What I do: New impress doc, insert a textbox with the texttool from drawing toolbar. Insert three lines of text using return. Select the textbox (green handles). Format/Paragraph, set indent before text to 1, -> all lines get shifted right. Select the 2nd line in edit mode (inverse text color). Format/Default formatting: only the 2nd line shifts to the left again.
In one of your paragraphs, format a few words e.g. bold. Then, highlight one of these words to remove the direct character formatting again using "Format - default". However, rather than removing only the direct character formatting, you are also resetting the formatting of the paragraph. Expected behaviour: when one or a few words are selected and "Format - Default" is choosen, only the selection (= a few words, not the paragraph) should be affected (similar as how it works in writer).
Still works here as expected. Which OS do you use? Is it a real OOo version or from some other distributor?
This is the OOo version that is packed with Ubuntu 9.04 (Jaunty Jackelope): OOO300m15 (Build:9379). I am sure we are misunderstanding each other, now that I re-read your second reply. [quote] Select the 2nd line in edit mode (inverse text color). Format/Default formatting: only the 2nd line shifts to the left again. [/quote] NONE of the lines should shift to the left again. The indent of the line is paragraph formatting. If only a few characters in a paragraph are selected (inverse text color), the paragraph formatting should NOT be reset on choosing "Format - default". Only the character formatting of the selected text should be affected. Thus, in your example: the line should NOT shift to the left again. I am now including very specific steps to illustrate the issue, which should allow a good understanding 1) On a blank presentation, enter a text box. Enter three lines, followed by <enter>, e.g "This is the first line", "This is the second line", "This is the third line". Press "Esc" such that we have the green handles. 2) Format/Paragraph, set indent before text to 10 mm (or 1 i), -> all lines get shifted right. 3) Highlight the second sentence, format as bold 4) In the second sentence, highlight only "This is the", select "Format default". Expected behaviour: direct formatting (in this case Bold) is removed. Observed behaviour: in addition to removing direct formatting, the command removes direct formatting of the entire paragraph (paragraph formatting), even though only a few words of the paragraph were selected.
Sorry I was not able to reproduce the bug. I tried this couple of times on different operating system like Windows Vista and Windows XP but was not able to replicate it. What I did was 1) Select new document. 2) Entered a text box. 3) Did set before text to 1 cm. 4)Then selected few lines and set its properties to default. But What I found was only selected portion properties where reset.
It is clear that there is a misunderstanding. I also reproduce the issue on OOo 3.1.1. on Windows XP: "format - default" on a selection of a few words of the text does also reset the paragraph's "Indent and spacing" setting, while it should only reset the character properties of the selected characters. In Writer, this works as expected. Anyway, I cannot be more clear than I have been, so feel free to close this issue.
This behavior is easily reproduced. (1) Create a new presentation. I create the simplest case, an empty presentation (from the presentation wizard, see the blank preview and click Create) (2) Select the Title Slide as the layout. Text in the main text area should be centered. (3) Type "This is the title slide" and then apply a paragraph level format (left justify it) and a text level format (make "title" bold. (4) Within the boldfaced word "title" select only the interior characters, "itl" (5) Click Format | Default Formatting. Result: (a) the "itl" gets unboldfaced and the surrounding t and e in "title" stay boldfaced. This is what we would expect from the online help ("Default Formatting -- Removes direct formatting and formatting by character styles from the selection.") Result (b) In addition, the paragraph, "This is the title slide" reverts back to centered from left-justified, the default layout for the title slide. So Format | Default sets both the paragraph settings back to default and the individual character settings back to default. The report expresses surprise that the paragraph settings have been reset. Now go to Writer, create a new blank document. The first line is by default left-justified. Type "This is a title." Center it. Boldface "title" and then select "itl". Click on Format | Default Formatting. The "itl" is unboldfaced but the title stays centered. Thus, character-level formatting is eliminated but paragraph-level formatting is not changed back to the default This is a clear inconsistency between Writer and Impress. This does not strike me as a very serious bug, but I think that either Writer or Impress is working incorrectly.
Sorry, forgot some config information. I am working on OOo-deve 3.2.0 DEV300m55(Build:9418) on a dell Precision M6300 laptop running 32-bit Windows XP. I downloaded my copy of OOo directly from the OpenOffice site, so this is presumably a real (dev) OOo distribution not one that was customized by another distributor.
Thank you for corroborating this issue. The correct behaviour is in my opinion the one of Writer. It seems logical that yuo do not intent to reset paragraph formatting if you only selected a few characters.
I have already replicated this failure successfully. Configuration information: OOo version: 3.1 Sony VAIO VGN FW 590 laptop Operating system: Win 7 Steps to replicate the failure: • Create a new presentation in Open Office. • Choose “Title, 2 Text Blocks” as layout. Any layout other than default layout. ( for example I chose Title, 2 Text Blocks layout.) • Copy a paragraph from the webpage and paste it into both the two textboxes in the Open Office. This paragraph has to be same in both the textboxes. • Highlight the whole paragraph from the left textbox and select Format- >Paragraph. Change the Line spacing into double. • I clearly see that the Line spacing of the whole paragraph in the left textbox has already changed into double. • Highlight part of one sentence in the left text box. Select Format- >Default Formatting Expectation: As we know, the default row spacing of Open Office is single. So my expectation is that row spacing of highlight part of sentence changes into single but other parts of paragraph in the left textbox don’t change. Result: The row spacing of whole paragraph in the left text box (both the highlighted part and unhighlighted part) changes into single. Follow Up Test I am not sure that this is a bug so I test the same situation on the Microsoft Office. Microsoft Office version: Office 2003 Chinese Steps to replicate the failure on Microsoft Office: • Create a new presentation on Microsoft PowerPoint. • Choose the same layout I chose on Open Office. • Copy the same paragraph and paste them into the two textbox in PowerPoint. • Highlight the whole paragraph from the left textbox and change the row spacing into double. • The row spacing of the whole paragraph in the left textbox has already changed into double. • Highlight part of one sentence in the left textbox. Because there is no such options like “Default Formatting” in PowerPoint 2003, I have to select Format->Row Spacing and change the row spacing into single. Expectation: I expect that row spacing of highlight part of sentence changes into single but other parts of paragraph in the left textbox don’t change. Result: The row spacing of whole paragraph changes into single. In addition, I did more follow-up testing on Microsoft Word and got the same result. This failure does fail to achieve customer’s expectation. As a result, it is a bug. However, in my opinion, most users will not have the same operations and they will not meet the same failure. I think this is not a serious bug. Also, I think that this bug is probably hard to be fixed because it is impossible to set two paragraph states in one paragraph. So I think that it is better to defer or reject this bug.
Created attachment 67678 [details] Before “default formatting
Created attachment 67679 [details] After “Default Formatting”
Created attachment 67680 [details] Before change the row spacing of highlight part on Microsoft PowerPoint
Created attachment 67681 [details] After change the row spacing of highlight part on Microsoft PowerPoint
Ok, I see the problem now. Reassigned.
Reset assigne to the default "issues@openoffice.apache.org".