protected function flushFootnotes()
{
$out = false;
foreach ($this->footnotes as $k => $tag) {
if (!isset($tag['unstacked'])) {
if (!$out) {
$out = true;
$this->out("\n\n", true);
} else {
$this->out("\n", true);
}
$this->out(' [' . $tag['linkID'] . ']: ' . $this->getLinkReference($tag), true);
$tag['unstacked'] = true;
$this->footnotes[$k] = $tag;
}
}
}