diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2014-04-09 10:01:52 -0700 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2014-04-09 10:01:52 -0700 |
| commit | 4eb150a14ce07b54d388048a8808176681f369d3 (patch) | |
| tree | 1de6e74c57e637c3ff046088f8970b479ff377c4 | |
| parent | 54e33a132bcbb353d6d85100dfe51e53fb3c5ace (diff) | |
| parent | 5b9f9047a02f96daf5215bfd4d1cd376ef4186c3 (diff) | |
| download | pandoc-4eb150a14ce07b54d388048a8808176681f369d3.tar.gz | |
Merge pull request #1227 from tarleb/editorconfig
Add .editorconfig
| -rw-r--r-- | .editorconfig | 12 | ||||
| -rw-r--r-- | CONTRIBUTING.md | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..9c562bd1f --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index eeee77b25..824d1465e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -60,6 +60,8 @@ Please follow these guidelines: 3. Follow the stylistic conventions you find in the existing pandoc code. Use spaces, not tabs, and wrap code to 80 columns. 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). @@ -177,5 +179,6 @@ The library is structured as follows: [issue tracker]: https://github.com/jgm/pandoc/issues [User's Guide]: http://johnmacfarlane.net/pandoc/README.html [FAQs]: http://johnmacfarlane.net/pandoc/faqs.html +[EditorConfig]: http://editorconfig.org/ [Haskell platform]: http://www.haskell.org/platform/ [hsb2hs]: http://hackage.haskell.org/package/hsb2hs |
