1
0
mirror of synced 2026-01-08 12:01:53 -05:00

trim-end the text from indented-data-reference (#32807)

This commit is contained in:
Peter Bengtsson
2022-11-21 17:52:22 +01:00
committed by GitHub
parent 3a40d0737c
commit e2b3ad602b

View File

@@ -45,7 +45,7 @@ export default {
}
// add spaces to each line
const renderedReferenceWithIndent = text.replace(/^/gm, ' '.repeat(numSpaces))
const renderedReferenceWithIndent = text.replace(/^/gm, ' '.repeat(numSpaces)).trimEnd()
return this.liquid.parseAndRender(renderedReferenceWithIndent, scope.environments)
},