mirror of
https://github.com/cheat/cheat.git
synced 2025-09-05 19:42:55 +02:00
fix(frontmatter): do not trim whitespace (#663)
Do not strip leading or trailing newlines. Doing so had interferred with users' intended cheatsheet layouts.
This commit is contained in:
@ -51,7 +51,7 @@ func New(
|
||||
Title: title,
|
||||
CheatPath: cheatpath,
|
||||
Path: path,
|
||||
Text: text + "\n",
|
||||
Text: text,
|
||||
Tags: tags,
|
||||
Syntax: fm.Syntax,
|
||||
ReadOnly: readOnly,
|
||||
|
Reference in New Issue
Block a user