Apache OpenOffice (AOO) Bugzilla – Issue 83935
Suggest automatic return to text body when return is pressed before a heading (as well as after)
Last modified: 2013-02-07 22:34:19 UTC
When I select the "heading" format option, type a heading and hit return, the format automatically changes to "text body" (as it should), however, if I move the cursor to the begging of the heading and hit return, the previous line retains the heading format and subsequently typed text at that location will have the same heading format. I suggest that hitting return with the cursor at the beginning of a heading should function in the same way as with the cursor located after the heading (i.e. changing the previous line back to "text body" format).
I agree with this user. This is a must. thanks Carlos
I do not think, that this is a good Idea. 1. returning to style "Text body" at the end of a Heading is due to the settings on the "Heading X" style on "Organize" tab (and is customizable"). This will refer to newly created paragraphs. 2. I do not know any Word Processors, which give an existing paragraph a new style when it is splitted. But let's discuss it here...
The idea to switch the style if a new paragraph is created at the end of a heading is that *the text is continued*. Following text is clearly not intended to be part of the heading. So I think the behavior is useful and reasonable in that case. If the same happens inside a heading two paragraphs result and it's questionable which one of them the user wants to be the heading and which not. Without a clear argument why always the second paragraph should lose the "heading" attribute I opt for keeping the current behavior. This will at least not confuse a lot of users without a clear benefit. In case a user hits return at the beginning of the heading I even assume that in most cases he just wants to insert an empty line before the heading and so it's highly improbable that the former heading should change its style. Though it's questionable if the newly created paragraph before the heading should be a heading also. But as nobody complained against that until now I also hesitate to change that. In any case I think it would be wrong to remove the "heading" style from the paragraph containing the heading text.
quote "In case a user hits return at the beginning of the heading I even assume that in most cases he just wants to insert an empty line before the heading" /quote This was the case that I was putting forward.
Sorry, I misunderstood "previous line" that you were talking about the line that was there before. But as you are talking about the new, now first line: I second that request in general. We have to think about the paragraph style though, perhaps we should chose the one the last paragraph above the heading (if there is one) would be better. At the end, the other style is named "follow(!) style".