dedent icon indicating copy to clipboard operation
dedent copied to clipboard

Removing leading NL, compatible with Python textwrap.dedent("""\.

Open marhar opened this issue 3 years ago • 4 comments
trafficstars

(sorry for the previous polluted pull request, my git-fu seems to be weak!)

marhar avatar May 23 '22 16:05 marhar

Agree but I think it should also strip trailing newlines, e.g. perform a strings.TrimSpace, which would match the behaviour of https://github.com/dmnd/dedent.

silverwind avatar May 24 '22 19:05 silverwind

It seems like this is basically a duplicate of #7 (but less efficient).

lithammer avatar May 27 '22 08:05 lithammer

Not sure why you're messing around with go.mod either?

lithammer avatar May 27 '22 08:05 lithammer

Try it now... I think my mental model is broken, I was thinking it was a self-contained patch, and was fiddling around to understand go.mod. I think I've set everything back to how it should be and won't touch it.

marhar avatar May 27 '22 22:05 marhar