Exemplo n.º 1
0
 /**
  * Trims away EOL whitespace for block lines for the specified block element.
  *
  * The parser will call the ezcTemplateBlockTstNode::trimLine() 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 child blocks trimmed of EOL whitespace.
  * @return void
  */
 public function trimBlockLine(ezcTemplateBlockTstNode $block)
 {
     if (!$this->trimWhitespace) {
         return;
     }
     // Tell the block to trim its block line for any whitespace and EOL characters
     // by passign the object  which has defined the rules for trimming whitespace
     $block->trimLine($this->whitespaceRemoval);
 }