mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-01 21:42:44 +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:
@@ -96,7 +96,7 @@ const mustacheDivs = {
|
|||||||
while (delim = blockRegex.exec(match[0])?.[0].trim()) {
|
while (delim = blockRegex.exec(match[0])?.[0].trim()) {
|
||||||
if(!tags) {
|
if(!tags) {
|
||||||
tags = `${processStyleTags(delim.substring(2))}`;
|
tags = `${processStyleTags(delim.substring(2))}`;
|
||||||
endTags = delim.length;
|
endTags = delim.length + src.indexOf(delim);
|
||||||
}
|
}
|
||||||
if(delim.startsWith('{{')) {
|
if(delim.startsWith('{{')) {
|
||||||
blockCount++;
|
blockCount++;
|
||||||
|
|||||||
Reference in New Issue
Block a user