chore: ensure consistent line endings#659
Conversation
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
| charset = utf-8 | ||
| indent_style = space | ||
| indent_size = 2 | ||
| trim_trailing_whitespace = true |
There was a problem hiding this comment.
Won't this break Github-style markdown where you indicate a <br> via two spaces at the end of line?
There was a problem hiding this comment.
oh my. i did not know that was a thing. I think github preserves newlines in markdown.
without
spaces
at
the
end
of
the
line
;-)
There was a problem hiding this comment.
Yeah, Github uses simplified end line rules for comments 🙃
But in things rendered from repo such as README.md you need to put a blank line for starting a new paragraph, otherwise it will be rendered as a single line.
There was a problem hiding this comment.
oh whut. every day a school day when nothing is consistent.
I copied this config from js-ipfs, so that's an interesting find @lidel
There was a problem hiding this comment.
@lidel i've added an override for markdown files
[*.md]
trim_trailing_whitespace = false
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
Adds editorconfig to keep our editors ending lines with LF and .gitattributes to get git to ensure LF line endings when the editor doesn't.
License: MIT
Signed-off-by: Oli Evans oli@tableflip.io