From d19951368818be49917a0f08ddfc45e87923dabe Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 23 Mar 2007 07:05:00 +0000 Subject: [PATCH] Fixed text: hanling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5868 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/sieve/class_My_Tree.inc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/include/sieve/class_My_Tree.inc b/include/sieve/class_My_Tree.inc index d935a20aa..f54312d48 100644 --- a/include/sieve/class_My_Tree.inc +++ b/include/sieve/class_My_Tree.inc @@ -581,7 +581,18 @@ class My_Tree extends Tree $tmp3 = split("\n",$tmp2); foreach($tmp3 as $str){ $str2 = trim($str); - $tmp.= $buffer.$str."\n"; + + /* If the current line only contains an '.' + * we must skip the line indent. + * The text: statement uses a single '.' to mark the text end. + * This '.' must be the only char in the current line, no + * whitespaces are allowed here. + */ + if($str2 == "."){ + $tmp.=$str."\n"; + }else{ + $tmp.= $buffer.$str."\n"; + } } if(get_class($part) == "sieve_block_start"){ $buffer .= SIEVE_INDENT_TAB; -- 2.30.2