specdown
specdown copied to clipboard
No way to make a result with an no trailing newline pass the diff
You get something like this
< left / > right
+-----------------------------------+---------+
| Lint | Status |
+=============================================+
| duplicated-trailers | enabled |
|-----------------------------------+---------|
| subject-not-separated-from-body | enabled |
|-----------------------------------+---------|
| subject-longer-than-72-characters | enabled |
|-----------------------------------+---------|
| body-wider-than-72-characters | enabled |
+-----------------------------------+---------+
<
Which isn't representable with the code block
What do you think the logic would be for this? Strip all trailing newlines? Strip one trailing newline? Maybe an optional setting to ignore trailing whitespace (wondering if some times you do care?).
I'm not really sure, this was actually a bug in my app, but if I was testing
echo -n "."
It wouldn't be. Probably the way it is now is the default with some special behaviour for commands without trailing newlines