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