Closed vrom911 closed 4 years ago
Yours is really a rare case, but anyways. Here's a new behaviour that I suggest:
myText1 =
[text|
abc
|]
myText2 =
[text|
abc
|]
myText3 =
[text|
abc
|]
myText1 == "abc"
myText2 == "\nabc"
myText3 == "\nabc\n"
@nikita-volkov , thanks for your reply! I'm not sure that understood you correctly. What's the difference between what you suggest and my initial proposal? Sorry for my confusion.. :confused: The only thing I want is not to remove trailing and leading empty lines..
The difference from the current behaviour will be that instead of trimming all the blank lines, it will only drop 1 from each side (if they are at all present).
@nikita-volkov Okay, I see now. That'll do for me.
0.5 now provides trimming
and untrimming
variations of the quasiquoter. untrimming
addresses the problem expressed in this thread.
If you have something like this:
you expect to have the output:
But instead it's just
My workaround was to have the
endLine = "\n"
and put it at first and last lines:which is not very cool. It would be much nicer if this behavior can be configurable.