/** * Trims away indentation for one block level. * * The parser will call the ezcTemplateBlockTstNode::trimIndentation() method * of the specified block object with the whitespace removal object passed * as parameter. This allows the block element to choose how to apply the trimming * process since it may have more than one child list. * * Note: This does nothing if self::$trimWhitespace is set to false. * @param ezcTemplateBlockTstNode $block * Block element which has its children trimmed of indentation whitespace. * @return void */ public function trimBlockLevelIndentation(ezcTemplateBlockTstNode $block) { if (!$this->trimWhitespace) { return; } // Tell the block to trim its indentation by assign the object // which has defined the rules for trimming whitespace $block->trimIndentation($this->whitespaceRemoval); }