From f8683ebbc82809c5c1e03f3be22b12cd02d1d400 Mon Sep 17 00:00:00 2001 From: Gazook89 Date: Sun, 22 Feb 2026 21:46:42 -0600 Subject: [PATCH] Update custom snippets to allow inline Removes the additional line after a snippet, so it doesn't effectively create a `\n` at the end of the snippet. This allows snippets to be inline with text. --- shared/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/helpers.js b/shared/helpers.js index adf5b889a..8177aa7a9 100644 --- a/shared/helpers.js +++ b/shared/helpers.js @@ -19,7 +19,7 @@ const brewSnippetsToJSON = (menuTitle, userBrewSnippets, themeBundleSnippets=nul userSnippets.push({ name : snippetName, icon : '', - gen : snipSplit[snips + 1], + gen : snipSplit[snips + 1].replace(/\n$/, ''), }); } } @@ -44,7 +44,7 @@ const brewSnippetsToJSON = (menuTitle, userBrewSnippets, themeBundleSnippets=nul if(snippetName.length != 0) { const subSnip = { name : snippetName, - gen : snipSplit[snips + 1], + gen : snipSplit[snips + 1].replace(/\n$/, ''), }; // if(full) subSnip.icon = ''; userSnippets.push(subSnip);