morbig icon indicating copy to clipboard operation
morbig copied to clipboard

Strip last newline from here documents?

Open Niols opened this issue 2 years ago • 1 comments

Currently, on here documents, Morbig systematically produces a word that ends with a literal containing a newline character. One could however argue that this newline, because it is systematically necessary, does not belong to the content of the here-document but to the syntax of here-documents themselves. I think we should strip it as part of Morbig's parsing.

Niols avatar Jun 18 '23 17:06 Niols

That makes sense to me too.

yurug avatar Jun 18 '23 19:06 yurug