/**
  * Renders the opening of a comment.
  * Only conditional comments are rendered
  */
 public function renderOpenComment($node)
 {
     if ($node->isConditional) {
         return parent::renderOpenComment($node);
     }
 }
示例#2
0
 /**
  * Renders the opening of a comment
  */
 public function renderOpenComment($node)
 {
     return parent::renderOpenComment($node) . (empty($node->content) ? "\n" : '');
 }