mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-22 06:48:11 +00:00
Merge pull request #4646 from Gazook89/Custom-Snippet-Allow-Inline
Custom Snippets: Allow Inline
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user