From b312bc8c386dbd5a739054696a56314571f682b9 Mon Sep 17 00:00:00 2001 From: Zhang Chiyuan Date: Sat, 22 Mar 2008 11:12:16 +0000 Subject: [PATCH] add contents to faq. --- doc/faq.rst | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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.