git.iko.soy/typeable/pandoc
on master help sign in
Add .editorconfig

Use EditorConfig to define a some basic styling rules for code. This should also help to reduce the number of commits introducing trailing whitespace. See http://editorconfig.org/ for details.

commit5b9f9047a02f96daf5215bfd4d1cd376ef4186c3 authorAlbert Krewinkel <tarleb@moltkeplatz.de> dateWed 9 Apr 2014, 15:45 (13 years ago) parente555a57
2 files changed+15
.editorconfig+12 CONTRIBUTING.md+3
.editorconfignew file+12
@@ -0,0 +1,12 @@
1+root = true
2+
3+[*]
4+charset = utf-8
5+end_of_line = lf
6+indent_style = space
7+indent_size = 2
8+insert_final_newline = true
9+trim_trailing_whitespace = true
10+
11+[*.{markdown,md}]
12+trim_trailing_whitespace = false
CONTRIBUTING.md+3
@@ -60,6 +60,8 @@ Please follow these guidelines:
60603. Follow the stylistic conventions you find in the existing
6161 pandoc code. Use spaces, not tabs, and wrap code to 80 columns.
6262 Always include type signatures for top-level functions.
63+ Consider installing [EditorConfig], this will help you to follow the
64+ coding style prevalent in pandoc.
6365
64664. Your code should compile without warnings (`-Wall` clean).
6567
@@ -177,5 +179,6 @@ The library is structured as follows:
177179[issue tracker]: https://github.com/jgm/pandoc/issues
178180[User's Guide]: http://johnmacfarlane.net/pandoc/README.html
179181[FAQs]: http://johnmacfarlane.net/pandoc/faqs.html
182+[EditorConfig]: http://editorconfig.org/
180183[Haskell platform]: http://www.haskell.org/platform/
181184[hsb2hs]: http://hackage.haskell.org/package/hsb2hs