diff --git a/doc/faq.rst b/doc/faq.rst index 6592103..e136cd0 100644 --- a/doc/faq.rst +++ b/doc/faq.rst @@ -6,5 +6,14 @@ How to define a snippet ? :Contact: pluskid@gmail.com :Date: 2008-03-20 -Coming soon. Currently please refer to the online `Tips wiki page -`_. +Why there's an extra newline? +============================= + +If you have a newline at the end of the snippet definition file, then +YASnippet will add a newline when you expanding a snippet. Please +don't add a newline at the end if you don't want it when you saving +the snippet file. + +Note some editors will automatically add a newline for you. In Emacs, +if you set ``require-final-newline`` to ``t``, it will add the final +newline for you automatically.