From b469554ac136d0dd349ce3f3df41e63a385226aa Mon Sep 17 00:00:00 2001 From: Tyler Akins Date: Mon, 26 Jan 2015 18:23:28 -0600 Subject: [PATCH] Avoid newline indentation with empty indent string --- mo | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mo b/mo index aab10ef..3ed5af9 100755 --- a/mo +++ b/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'