Closed nikolawannabe closed 10 years ago
As far as I can see, it works fine. I've tried:
echo -e "foo\n\n* bar" | bin/kwim --to=html
...and I get a p
followed by a ul
, all well-formed. An extra \n
doesn't make any difference.
I've also tried it with a file with no trailing new line.
Could you give a minimal test case?
@pdl, echo
adds a newline.
Try:
echo -n foo | ./bin/kwim
PS. I'm on IRC if you've got time.
Ah, of course it does! I tried it with a plain file with no line endings and it seemed fine, but perhaps I had left a trailing line by accident. Yes, with -n I can reproduce it.
Fixed in 9852b8c79ae4b2a8e4a0a76a057e2bc42fbb191a
This should be allowed as it is a common use case.