NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 947 - Replace newlines with "↩" in out=html output
Replace newlines with "↩" in out=html output
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: Browser-based UI
HEAD
All All
: P2 enhancement
Assigned To: Michael[tm] Smith
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-18 08:54 CET by Michael[tm] Smith
Modified: 2013-04-17 07:23 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael[tm] Smith 2012-11-18 08:54:49 CET
In testing for bug 945 (validation of SVG path data) with long attribute values that contain line breaks, Simon pointed out that the literal newlines show up as-is in the "Bad value `...` for attribute" message that gets emitted -- so that the message ends up getting broken up into multiple lines, making it ugly and hard to read.

<zcorpan> MikeSmith: i found a different bug now. newlines in the attribute value get shown as literal newlines in the message (both for "bad value `...`" and the new context)
 <zcorpan> MikeSmith: maybe they should be replaced with ↩

The gnu and json output formats already do replacement of newlines with "↩". It'd be good to do the same thing for HTML output.

I hacked a fix into the MessageEmitterAdapter code in my working directory but the right place to change it is in the XhtmlMessageTextHandler code.