3 ms·
Tip: you can use four leading spaces to write code. Like this
by jfkebwjsbx 7y ago
Tip: you can use four leading spaces to write code.
Like this
- deleted 7y ago[deleted]
- steveklabnik 7y agoYou only need two! like this
- DougGwyn 7y agoI tried, but two spaces yielded what you saw.
- dang 7y agoHuh, it also needed an extra line break before the first line of code. I didn't realize that! I've fixed it now.
- DougGwyn 7y agoYou should be commended for the fast customer service!
- steveklabnik 7y agoI didn't realize that either, but it's described in formatdoc as such. So if you changed that behavior, probably should change the docs too.
- dang 7y agoI didn't change the behavior - I just added a newline. Sorry that wasn't clear.
- sgt 7y agoI did not know that, after spending years on HN. while(1) fork();
- steveklabnik 7y agohttps://news.ycombinator.com/formatdoc https://news.ycombinator.com/formatdoc