joaotavora / yasnippet

A template system for Emacs
http://joaotavora.github.io/yasnippet/
2.81k stars 311 forks source link

yasnippet omits line-final spaces #1106

Open WorldsEndless opened 3 years ago

WorldsEndless commented 3 years ago

Yasnippet is omitting spaces, so "*** " is translated as written out as ** (without the space). Perhaps this is a new change because it has just started damaging my workflow. I don't see answers that apply to me on #768 or #712. Note in the code below that the template includes a plain space after the "***" on line 6, and I would like that space rendered.

Explanation: I render some template trees in orgmode when of the levels needs to exist for the TOC export, and so need a space after the asterisks. Recently I've had yasnippet apparently not outputting the necessary space, making the code output by the template essentially invalid.

# -*- mode: snippet -*-
# name: Blog Post
# key: /b
# --
 * TODO ${2:Post Title}
 ** 
 $0

Yasnippet Version: 0.14.0

rodrigomorales1 commented 3 years ago

Note in the code below that the template includes a plain space after the "***" on line 6, and I would like that space rendered.

@WorldsEndless I don't see three asterisks in your example, so I can't fully understand/reproduce your issue.