Merge pull request #1227 from tarleb/editorconfig

Add .editorconfig
This commit is contained in:
John MacFarlane 2014-04-09 10:01:52 -07:00
commit 4eb150a14c
2 changed files with 15 additions and 0 deletions

12
.editorconfig Normal file
View file

@ -0,0 +1,12 @@
root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
[*.{markdown,md}]
trim_trailing_whitespace = false

View file

@ -60,6 +60,8 @@ Please follow these guidelines:
3. Follow the stylistic conventions you find in the existing 3. Follow the stylistic conventions you find in the existing
pandoc code. Use spaces, not tabs, and wrap code to 80 columns. pandoc code. Use spaces, not tabs, and wrap code to 80 columns.
Always include type signatures for top-level functions. Always include type signatures for top-level functions.
Consider installing [EditorConfig], this will help you to follow the
coding style prevalent in pandoc.
4. Your code should compile without warnings (`-Wall` clean). 4. Your code should compile without warnings (`-Wall` clean).
@ -177,5 +179,6 @@ The library is structured as follows:
[issue tracker]: https://github.com/jgm/pandoc/issues [issue tracker]: https://github.com/jgm/pandoc/issues
[User's Guide]: http://johnmacfarlane.net/pandoc/README.html [User's Guide]: http://johnmacfarlane.net/pandoc/README.html
[FAQs]: http://johnmacfarlane.net/pandoc/faqs.html [FAQs]: http://johnmacfarlane.net/pandoc/faqs.html
[EditorConfig]: http://editorconfig.org/
[Haskell platform]: http://www.haskell.org/platform/ [Haskell platform]: http://www.haskell.org/platform/
[hsb2hs]: http://hackage.haskell.org/package/hsb2hs [hsb2hs]: http://hackage.haskell.org/package/hsb2hs