protected function handleTag_ul()
{
if ($this->parser->isStartTag) {
$this->stack();
if (!$this->keepHTML && $this->lastClosedTag == $this->parser->tagName) {
$this->out("\n" . $this->indent . '<!-- -->' . "\n" . $this->indent . "\n" . $this->indent);
}
} else {
$this->unstack();
if ($this->parent() != 'li' || preg_match('#^\\s*(</li\\s*>\\s*<li\\s*>\\s*)?<(p|blockquote)\\s*>#sU', $this->parser->html)) {
// dont make Markdown add unneeded paragraphs
$this->setLineBreaks(2);
}
}
}