Support tabs and CRLF line endings
Opened this issue ยท 23 comments
@zdne opened apiaryio/snowcrash#29
To fix this issues a moderate modification to https://github.com/apiaryio/sundown is needed.
Consider using Hoedown contributing to hoedown/hoedown#22 and hoedown/hoedown#28 instead
Can we make a hack for this by expanding all \t
before parsing?
Hey @Stephn-R,
you are the first one to ask for this in a long time. I am afraid the status hasn't changed since apiaryio/snowcrash#29 (comment) we might migrate the parser but no ETA just yet.
So what's a workaround? I have codeblocks with tabs to show examples... will the codeblocks have to be converted to spaces I guess?
@ze-phyr-us commented
@jacquesfu I'm just piping my blueprints through sed 's/ / /g'
before feeding them to snowcrash.
Edit: GH screws up the formatting, but obviously that was s/<tab>/<4 spaces>/g
@defaltd commented
Alright so the way I was able to resolve this was if I targeted the affected files and ran a python method for stripping out carriage returns >> \r
@defaltd commented
Agreed but this discussion is about the way line endings are formed by your IDE/System
I just hit this issue because Windows. ๐ It's obviously possible to route around, but it's an unfortunate complication when trying to use API Blueprint docs with dredd, etc.
Remove pain. Win hearts and minds. ๐
๐ to fixing this soon.
This is an important pre-requisite for apiaryio/dredd#204.