Closed
Bug 831344
Opened 13 years ago
Closed 10 years ago
Composer: BACKSPACE key doesn't preserve format of the current line
Categories
(SeaMonkey :: Composer, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: mapson12, Unassigned)
Details
Attachments
(1 file)
|
360 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15
Build ID: 20130105222032
Steps to reproduce:
Summary: when the cursor is at the beginning of a line and backspace is pressed, the formatting (eg heading) of the current line should be preserved, unless it is an empty line. In this case the format of the previous line should be preserved (DEL key behaves like this, with respect to the following line).
1. Open blank page
2. type some text and select "paragraph" from the format dropdown
3. press return
4. type some text and select "heading 1" from the format dropdown (should now have a paragraph and a heading)
5. Place the cursor at the beginning of the heading and press BACKSPACE
Actual results:
The heading is joined with the preceding paragraph, the whole text is formatted as paragraph.
Expected results:
The heading format should be preserved.
You can't mix p and h tags in one line, so current behavior is correct, one of the tags must be stripped.
Reopen this if you get this with valid tags combination
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
I know that one format must be stripped, that's not the problem. The problem is that the wrong format is chosen to be preserved. The format of the current line should be preserved, as is the case with the DEL key. Currently the format of the line above "wins".
To make this more clear: Consider a paragraph with a heading below it. Currently there's no way to join them while preserving the heading tag, because no matter whether you use the DEL key in the upper line or backspace in the lower line, the heading tag will be stripped. With the supposed behaviour, it will be possible.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Comment 4•10 years ago
|
||
Either I misunderstand intention of this report or the request wants something impossible or there is no practical use for the request.
The effect is reproducible with attached test document:
0. Open test document in Composer
1. Click left from "HEADING"
» Caret flashes left from Heading
2. <Backspace>
» Word "HEADING" (= complete paragraph) moves to end of first line,
looses style "Heading 1" and gets new style "Paragraph"
from line to what it becomes joined.
3. Close without saving and reopen in Composer
4. Click left from last paragraph line ► <Backspace>
» complete paragraph moves to end of HEADING line,
looses style "Paragraph" and gets new style "Heading 1"
from line to what it becomes joined.
» Word
But that is the behavior I also know form other word processing software, I can't see any problem with it.
Comment 5•10 years ago
|
||
@reporter:
Please feel free to reopen this report if you can cite technical rules, style guides, RFC or any other accepted standard what underpins your point of view. but don't reopen the bug with the argument "I think ..."
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago → 10 years ago
OS: Linux → All
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•