Closed
Bug 183995
Opened 22 years ago
Closed 22 years ago
carriage return (0x0d) added to JavaScript lines every time it's edited
Categories
(SeaMonkey :: Composer, defect)
Tracking
(Not tracked)
VERIFIED
DUPLICATE
of bug 159615
People
(Reporter: cle, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130
Every time an HTML file (with DOS end of line) is edited with the composer, an
other 0x0d is added between the text and EOL marker (0x0d 0x0a). This has
happened in 1.1 (the reason I downloaded the new version is I hoped it would be
fixed.) The retain source formatting in preferences doesn't seam to have any
affect.
This version also removes end of line markers from other non-JavaScript lines.
This is new this release.
This doesn't cause the page to be displayed incorrectly. It does make the
source hard to read and edit by hand.
Reproducible: Always
Steps to Reproduce:
1.Create a file with a text editor
2.Edit the file in the composer
3.
Actual Results:
Hex dump of the file after two edits:
00000000: 3c 21 44 4f 43 54 59 50-45 20 68 74 6d 6c 20 50 <!DOCTYPE html P
00000010: 55 42 4c 49 43 20 22 2d-2f 2f 57 33 43 2f 2f 44 UBLIC "-//W3C//D
00000020: 54 44 20 48 54 4d 4c 20-34 2e 30 31 20 54 72 61 TD HTML 4.01 Tra
00000030: 6e 73 69 74 69 6f 6e 61-6c 2f 2f 45 4e 22 3e 3c nsitional//EN"><
00000040: 68 74 6d 6c 3e 3c 68 65-61 64 3e 3c 74 69 74 6c html><head><titl
00000050: 65 3e 54 65 73 74 3c 2f-74 69 74 6c 65 3e 3c 2f e>Test</title></
00000060: 68 65 61 64 3e 3c 62 6f-64 79 20 62 67 63 6f 6c head><body bgcol
00000070: 6f 72 3d 22 77 68 69 74-65 22 3e 65 64 69 74 23 or="white">edit#
00000080: 32 65 64 69 74 20 23 31-3c 73 63 72 69 70 74 20 2edit #1<script
00000090: 6c 61 6e 67 75 61 67 65-3d 22 4a 61 76 61 53 63 language="JavaSc
000000a0: 72 69 70 74 22 3e 0d 0d-0d 0a 64 6f 63 75 6d 65 ript">....docume
000000b0: 6e 74 2e 77 72 69 74 65-28 22 74 65 73 74 3c 62 nt.write("test<b
000000c0: 72 3e 22 29 3b 0d 0d 0d-0a 64 6f 63 75 6d 65 6e r>");....documen
000000d0: 74 2e 77 72 69 74 65 28-22 74 65 73 74 3c 62 72 t.write("test<br
000000e0: 3e 22 29 3b 0d 0d 0d 0a-3c 2f 73 63 72 69 70 74 >");....</script
000000f0: 3e 0d 0a 3c 2f 62 6f 64-79 3e 3c 2f 68 74 6d 6c >..</body></html
00000100: 3e - >
Expected Results:
Expected Hex dump
00000000: 3c 21 44 4f 43 54 59 50-45 20 68 74 6d 6c 20 50 <!DOCTYPE html P
00000010: 55 42 4c 49 43 20 22 2d-2f 2f 57 33 43 2f 2f 44 UBLIC "-//W3C//D
00000020: 54 44 20 48 54 4d 4c 20-34 2e 30 31 20 54 72 61 TD HTML 4.01 Tra
00000030: 6e 73 69 74 69 6f 6e 61-6c 2f 2f 45 4e 22 3e 3c nsitional//EN"><
00000040: 68 74 6d 6c 3e 3c 68 65-61 64 3e 0d 0a 3c 74 69 html><head>..<ti
00000050: 74 6c 65 3e 54 65 73 74-3c 2f 74 69 74 6c 65 3e tle>Test</title>
00000060: 0d 0a 3c 2f 68 65 61 64-3e 3c 62 6f 64 79 20 62 ..</head><body b
00000070: 67 63 6f 6c 6f 72 3d 22-77 68 69 74 65 22 3e 0d gcolor="white">.
00000080: 0a 65 64 69 74 23 32 65-64 69 74 20 23 31 3c 73 .edit#2edit #1<s
00000090: 63 72 69 70 74 20 6c 61-6e 67 75 61 67 65 3d 22 cript language="
000000a0: 4a 61 76 61 53 63 72 69-70 74 22 3e 0d 0a 64 6f JavaScript">..do
000000b0: 63 75 6d 65 6e 74 2e 77-72 69 74 65 28 22 74 65 cument.write("te
000000c0: 73 74 3c 62 72 3e 22 29-3b 0d 0a 64 6f 63 75 6d st<br>");..docum
000000d0: 65 6e 74 2e 77 72 69 74-65 28 22 74 65 73 74 3c ent.write("test<
000000e0: 62 72 3e 22 29 3b 0d 0a-3c 2f 73 63 72 69 70 74 br>");..</script
000000f0: 3e 0d 0a 3c 2f 62 6f 64-79 3e 3c 2f 68 74 6d 6c >..</body></html
00000100: 3e 0d 0a - >..
Original file:
<html><head>
<title>Test</title>
</head><body bgcolor="white">
<script language="JavaScript">
document.write("test<br>");
document.write("test<br>");
</script>
</body>
</html>
Comment 1•22 years ago
|
||
dup of Bug 159615.
Comment 2•22 years ago
|
||
*** This bug has been marked as a duplicate of 159615 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•