doc: Replace whitespaces with - for section IDs
Fixes jQuery selector issues when jumping to an anchor.
This commit is contained in:
parent
4e3fbb1341
commit
82d36e11cc
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue