doc: Replace whitespaces with - for section IDs

Fixes jQuery selector issues when jumping to an anchor.
This commit is contained in:
Eric Lippmann 2015-08-10 13:22:16 +02:00
parent 4e3fbb1341
commit 82d36e11cc
1 changed files with 8 additions and 0 deletions

View File

@ -88,6 +88,14 @@ class DocSection extends TreeNode
return $this->content;
}
/**
* {@inheritdoc}
*/
public function setId($id)
{
return parent::setId(str_replace(' ', '-', (string) $id));
}
/**
* Set the header level
*