Bug #5289
closed![Author: Johan Gheys](https://www.gravatar.com/avatar/488363e2a5858062d4459679a5d97e66?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: Michael Kay](https://www.gravatar.com/avatar/db6526d63053f09b62e52c2da8b2230a?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
xsl: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 over 2 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 over 2 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 over 2 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 over 2 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 over 2 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