Prompt for snippet — Last full line %Ask% seems to add extra trailing newline

Hi!

I've just been noticing that the Prompt for Snippet action seems to add an extra newline at the end of the outputted result if the prompt ends with a full line %Ask%. The extra newline is added regardless of the predicted number of lines in the %Ask% (%Ask%, %Ask1% and %Ask20% all give the same result, as seen in examples #1–3 in the test macro below).

In examples where the prompt does not end with a full line %Ask% there is no extra trailing newline added to the result (as seen in examples #6–7 in the test macro below).

When adding one or more newlines to the end of the inputted text, the result returns with the correct number of newlines, even when the prompt ends with a full line %Ask% (as in examples #4–5 in the test macro below).

To me this does not seem like expected behaviour

Test Macro:
Prompt for snippet — Last full line %Ask% seems to add extra newline.kmmacros (8.3 KB)
(KM v11.0.4)

Macro Image