KirillOsenkov / MSBuildStructuredLog

A logger for MSBuild that records a structured representation of executed targets, tasks, property and item values.
MIT License
1.46k stars 198 forks source link

Use a different suffix for line breaks in shortened text #506

Closed ltrzesniewski closed 3 years ago

ltrzesniewski commented 3 years ago

Tasks can log lines with a line break at the end, and the viewer currently displays these like this:

image

This suggests there is more information in the message, but it's not true. This PR changes the display to this:

image

If there's only whitespace after the line break, it changes the suffix to "↵". This tells the user there's a line break, but there's nothing interesting afterwards.

Note that the space before the suffix belongs to the message in the example screenshots - the actual suffix is "↵", not " ↵".

KirillOsenkov commented 3 years ago

Nice!