0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-25 05:22:38 +00:00

Merge pull request #3193 from G-Ambatte/fixMustacheBlocks

MustacheDivs do not account for prefixed spaces when generating text
This commit is contained in:
Trevor Buckner
2024-01-09 22:36:49 -05:00
committed by GitHub

View File

@@ -96,7 +96,7 @@ const mustacheDivs = {
while (delim = blockRegex.exec(match[0])?.[0].trim()) {
if(!tags) {
tags = `${processStyleTags(delim.substring(2))}`;
endTags = delim.length;
endTags = delim.length + src.indexOf(delim);
}
if(delim.startsWith('{{')) {
blockCount++;