Closed
Bug 35118
Opened 25 years ago
Closed 25 years ago
Sig delimiter malformed for format=flowed
Categories
(Core :: DOM: Serializers, defect, P3)
Core
DOM: Serializers
Tracking
()
VERIFIED
FIXED
M16
People
(Reporter: BenB, Assigned: bratell)
References
(Blocks 1 open bug)
Details
(Whiteboard: Fix attached (waiting for review and checkin))
Attachments
(3 files)
3.08 KB,
patch
|
Details | Diff | Splinter Review | |
726 bytes,
application/octet-stream
|
Details | |
626 bytes,
application/octet-stream
|
Details |
Reproduce:
1. Send a flowed mail with a signature with Mozilla
2. View it in View source
Actual result:
The sig delimiter is "--"
Expected result:
The sig delimiter is "-- "
Additional Comments:
This is a violation of both RFC2646 4.3 and son-of-1036.
Assignee | ||
Comment 1•25 years ago
|
||
Is the sig separator logically marked in any way? Otherwise it will be some work
checking newlines and such.
Reporter | ||
Updated•25 years ago
|
Assignee: bratell → mozilla
Reporter | ||
Comment 2•25 years ago
|
||
Daniel, it wasn't your bug. In pre's you don't strip trailing spaces (is that
correct?); and my sig is plain text and thus in a pre.
The bug here was, that "-- " was never inserted in the first place, but "--".
Per Daniel's request (which is a good idea in general, I think), I'm wrapping
sigs (both plain text and HTML) in a <div class=signature>. I'll attach a patch.
Reporter | ||
Comment 3•25 years ago
|
||
Well, if the sig is HTML, we have the described problem, even if "-- " was
inserted (now bug 35158): The delimiter is not in a pre and the flowed code
strips the last space.
Assignee | ||
Comment 5•25 years ago
|
||
I've fixed this, at least when the advanced composition windows is used to make
a format=flowed mail. I will attach the patch along with a new test.
Akkana, could cou review and check it in? It's a quite trivial fix. Just
checking if the current line to output is "-- " while stripping ending white
space and in that case stop stripping. Only when we're outputting format=flowed
though. That was the best solution I could think of right now, but if you think
that we should do this for all formatted output, just tell me and it's easy to
fix.
The test I added is a simple format=flowed mail with a sig delimiter and lines
that should be space stuffed. I will attach the simplemail.html and
simplemail.out. The normal problems with end-of-line conversions apply. I will
try to add them with a application/octet-stream mime type and see what that
does.
Assignee | ||
Comment 6•25 years ago
|
||
Assignee | ||
Comment 7•25 years ago
|
||
Assignee | ||
Comment 8•25 years ago
|
||
Assignee | ||
Comment 9•25 years ago
|
||
Setting milestone to M16.
Whiteboard: Fix attached (waiting for review and checkin)
Target Milestone: --- → M16
Assignee | ||
Comment 10•25 years ago
|
||
A side effect is that "-- " and "-- " and "-- " and "-- " and (I
think you get my point :-) ) so on, also are output as "-- ".
Comment 11•25 years ago
|
||
Looks fine -- I've checked it in, along with Makefile additions to export the
new test files. Go ahead and mark this fixed.
Assignee | ||
Comment 12•25 years ago
|
||
Fixed
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 13•24 years ago
|
||
*** Bug 40264 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•