Bug #5289
closedxsl:message adds an unnecessary new line
100%
Description
With version 10.6, the output of xsl:message looks like this:
whereas with version 11.1 unnecessary new lines are added:
Files
Updated by Martin Honnen almost 3 years ago
So, with Saxon 11 you get a new, blank line after each output of a single xsl:message
instruction? Or new lines inserted between the several lines of a single xsl:message
?
Updated by Michael Kay almost 3 years ago
The StandardMessageHandler
writes by default to a Writer
that sends messages to the configured Logger
, and the default Logger
is adding a newline to each message. But the StandardMessageHandler
is adding a newline as well, because it doesn't know that the Logger
is adding one. Solution not obvious.
Updated by Michael Kay almost 3 years ago
Simplest solution is for the standard message handler to refrain from adding the extra newline; if output is to a Logger then you'll get the newline, if it is to a user-supplied Writer destination, then the writer can decide whether to add one or not.
Updated by Michael Kay almost 3 years ago
- Category set to Diagnostics
- Status changed from New to Resolved
- Assignee set to Michael Kay
- Priority changed from Low to Normal
- Applies to branch 11, trunk added
- Fix Committed on Branch 11, trunk added
Updated by Debbie Lockett almost 3 years ago
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in Maintenance Release 11.2 added
Bug fix applied in the Saxon 11.2 maintenance release.
Please register to edit this issue