Closed Bug 41922 Opened 24 years ago Closed 24 years ago

Off by one error in linewrapping

Categories

(Core :: DOM: Serializers, defect, P3)

defect

Tracking

()

VERIFIED INVALID

People

(Reporter: bratell, Assigned: akkzilla)

Details

The line wrapper currently allows one character too much before line breaking. 
It can be seen in the tests where the following text are output when asking for 
a width of 70:

Here is a link to the mozilla.org <http://www.mozilla.org> page. Here
is some _underlined and *bold*ened_ified text plus some <angle bracket
entities>.

The first line is 70 characters. The second 71. Expected result is:

Here is a link to the mozilla.org <http://www.mozilla.org> page. Here
is some _underlined and *bold*ened_ified text plus some <angle
bracket entities>.

(Seen during testing on another bug when I wondered why my new code failed the 
test)
There is someone here who can't count (and trust computer programs too much).

Closing as INVALID
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
verified in 6/9 build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.