Closed Bug 236290 Opened 17 years ago Closed 11 years ago

html serializer ignores wrap setting

Categories

(Core :: DOM: Serializers, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: akkzilla, Assigned: akkzilla)

References

Details

Boris discovered while investigating bug 89780 that the html serializer never
looks at the nsIDocumentEncoder::OutputWrap setting.  It should be possible to
specify html output wrapped or unwrapped, independant of the other format vs.
raw flag settings.

Fortunately, the serializer already has wrapping code; it just has no way to
disable it (if the passed-in wrap column is zero, then it sets it to 72 and
never looks at the flags).  That part is easy enough to fix, and it's probably
safe to set mMaxColumn to zero in that case, but then in places where it's used,
we need to check for zero and call the appropriate method.
Depends on: 422403
My current patch for bug 422403 (not yet landed) fixes this issue. We could close this bug when my patch will be in the trunk.
Status: NEW → ASSIGNED
fixed by the patch for bug 422403
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.