Issue 83935 - Suggest automatic return to text body when return is pressed before a heading (as well as after)
Summary: Suggest automatic return to text body when return is pressed before a heading...
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOo 2.3
Hardware: PC (x86_64) Windows XP
: P3 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-24 22:40 UTC by username132
Modified: 2013-02-07 22:34 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description username132 2007-11-24 22:40:38 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).
Comment 1 crolidge 2007-11-25 11:50:37 UTC
I agree with this user. This is a must.

thanks
Carlos
Comment 2 michael.ruess 2007-11-26 08:49:11 UTC
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...
Comment 3 Mathias_Bauer 2007-11-26 22:54:16 UTC
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. 
Comment 4 username132 2007-11-26 23:06:04 UTC
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.
Comment 5 Mathias_Bauer 2007-11-27 07:00:17 UTC
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".