Rewrap doesn't work with selected text
Categories
(MailNews Core :: Composition, defect)
Tracking
(Not tracked)
People
(Reporter: davidmaxwaterman, Assigned: maxe)
References
(Blocks 2 open bugs)
Details
Attachments
(13 files)
|
122.24 KB,
image/jpeg
|
Details | |
|
133.71 KB,
image/jpeg
|
Details | |
|
148.53 KB,
image/jpeg
|
Details | |
|
132.64 KB,
image/jpeg
|
Details | |
|
132.64 KB,
image/jpeg
|
Details | |
|
132.21 KB,
image/jpeg
|
Details | |
|
1.45 KB,
text/plain
|
Details | |
|
1.34 KB,
text/plain
|
Details | |
|
2.71 KB,
text/plain
|
Details | |
|
100.97 KB,
image/jpeg
|
Details | |
|
106.60 KB,
image/jpeg
|
Details | |
|
100.74 KB,
image/jpeg
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
| Reporter | ||
Comment 3•23 years ago
|
||
| Reporter | ||
Comment 4•23 years ago
|
||
| Reporter | ||
Comment 5•23 years ago
|
||
| Reporter | ||
Comment 6•23 years ago
|
||
| Reporter | ||
Comment 7•23 years ago
|
||
| Reporter | ||
Comment 8•23 years ago
|
||
| Reporter | ||
Comment 9•23 years ago
|
||
Comment 10•23 years ago
|
||
Comment 11•23 years ago
|
||
| Reporter | ||
Comment 12•23 years ago
|
||
Comment 13•22 years ago
|
||
| Reporter | ||
Comment 14•22 years ago
|
||
Comment 15•21 years ago
|
||
Comment 16•21 years ago
|
||
Comment 17•21 years ago
|
||
Updated•21 years ago
|
Comment 18•21 years ago
|
||
Comment 19•20 years ago
|
||
Comment 20•20 years ago
|
||
Updated•17 years ago
|
Updated•17 years ago
|
Comment 21•16 years ago
|
||
Comment 22•15 years ago
|
||
Comment 23•15 years ago
|
||
Comment 24•15 years ago
|
||
Comment 25•15 years ago
|
||
Comment 26•15 years ago
|
||
Comment 27•14 years ago
|
||
Comment 28•13 years ago
|
||
Comment 29•13 years ago
|
||
Comment 30•12 years ago
|
||
Comment 31•12 years ago
|
||
Comment 32•12 years ago
|
||
Comment 33•12 years ago
|
||
Comment 34•12 years ago
|
||
Comment 35•12 years ago
|
||
Comment 36•12 years ago
|
||
Comment 37•10 years ago
|
||
Comment 38•8 years ago
|
||
Updated•3 years ago
|
| Assignee | ||
Updated•21 days ago
|
| Assignee | ||
Comment 39•21 days ago
|
||
Comment 41•21 days ago
|
||
Please note bug 2048095 comment 25:
The result depends on what exactly is selected. If only the quote is selected, the rewrap fails. If the linebreak after the quote is also selected, the rewrap works.
Hopefully the patch will take care of this.
| Assignee | ||
Comment 42•21 days ago
•
|
||
Hopefully the patch will take care of this.
Yes, it does.
The only point mentioned in this bug it does not take care of is that > (zero trailing white spaces) and > (two or more trailing white spaces) currently both become > (one trailing white space) when rewrapped, because it is asserted in a pre-existing test and handled in a totally different place and I feel might not even be undesired in the broader sense.
Comment 43•18 days ago
|
||
I'm taking the liberty to change the status to ASSIGNED, since you presented a patch. Please revert, if that's incorrect.
Updated•16 days ago
|
Comment 44•13 days ago
|
||
| Assignee | ||
Comment 45•13 days ago
|
||
Please verify this with tomorrows Daily.
Keep in mind, if you do not include the initial > with your selection for rewrap, it correctly does not generate any new >.
Comment 46•12 days ago
|
||
| bugherder | ||
Comment 47•12 days ago
|
||
Daily today it broken. I'll check it when I can.
Comment 48•11 days ago
|
||
So this is about various selections in the sample mail in attachment 9598222 [details], basically:
> Lorem Ipsum is simply dummy text ... including versions of Lorem Ipsum.
In the following, [] denotes the selection.
This case always worked and continues to work:
[> Lorem Ipsum is simply dummy text ... including versions of Lorem Ipsum.]
This case didn't work before the patch, but works now. It has the line break at the end selected as well:
[> Lorem Ipsum is simply dummy text ... including versions of Lorem Ipsum.
]
However, when selecting part of the quote and including a space at the end of the selection
[> Lorem Ipsum is simply dummy text ... including versions ]of Lorem Ipsum.
this space is removed in the result, which isn't correct:
> Lorem Ipsum is simply dummy text ...
> ... including versionsof Lorem Ipsum.
So in summary, this has improved, but there is further room for improvement. Maybe you can handle the "selection with trailing space" better.
Comment 49•11 days ago
|
||
There are obviously more test case with partial selection of the quote, like mid-to-end, mid-to-mid, with various space inclusions/exclusions. Maybe it would be easier to always consider the quote fully selected.
| Assignee | ||
Comment 50•10 days ago
|
||
this space is removed in the result, which isn't correct:
Are there any other users preferring keeping the space instead of the status quo of removing it?
In general, the current rewrap can only see the context that was selected, not before and not after. For example, if the > isn't included in the initial selection, none of the new lines emitted by the rewrap will carry the > with them.
Comment 51•10 days ago
|
||
No users present here. If you want user feedback, ask on these newsgroups:
alt.comp.software.thunderbird - de.comm.software.mozilla.mailnews
Why would any user prefer the incorrect action of deleting a space and gluing two words together?
| Assignee | ||
Comment 52•10 days ago
|
||
Why would any user prefer the incorrect action of deleting a space and gluing two words together?
Because for fully selected lines this cleans up a formatting mess.
Comment 53•10 days ago
|
||
I don't understand, the result needs further manual intervention before being useful.
| Assignee | ||
Comment 54•10 days ago
|
||
(In reply to Francesco from comment #53)
I don't understand, the result needs further manual intervention before being useful.
IMO, more users will have complete lines selected and be happy about the polished result of that than the niche usecase of rewrapping a partially selected line.
I had even considered enforcing rewrapping to always do full lines.
Needs more feedback, feel free to point me to user opinions on other platforms/communication channels.
Comment 55•10 days ago
|
||
Looks like this bug is done then. I'll file a follow-up.
Description
•