mirror of
https://github.com/tests-always-included/mo.git
synced 2024-12-21 09:27:46 +00:00
Avoid newline indentation with empty indent string
This commit is contained in:
parent
414808f7f2
commit
b469554ac1
6
mo
6
mo
@ -321,6 +321,12 @@ mustache-indent-lines() {
|
||||
|
||||
RESULT=""
|
||||
CONTENT="${3:0: -1}" # Remove newline and dot from workaround - in mustache-partial
|
||||
|
||||
if [ -z "$2" ]; then
|
||||
local "$1" && mustache-indirect "$1" "$CONTENT"
|
||||
return 0
|
||||
fi
|
||||
|
||||
mustache-find-string POS_N "$CONTENT" $'\n'
|
||||
mustache-find-string POS_R "$CONTENT" $'\r'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user