mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Generate the magic label always. We'll need it other times, when we do
the other TOCs, in particular. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32466 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a527de4f8f
commit
19bec6e8bc
@ -2405,10 +2405,8 @@ docstring Paragraph::simpleLyXHTMLOnePar(Buffer const & buf,
|
||||
|
||||
Layout const & style = *d->layout_;
|
||||
|
||||
if (!fortoc
|
||||
&& style.toclevel != Layout::NOT_IN_TOC
|
||||
&& style.toclevel <= buf.params().tocdepth) {
|
||||
// we need to generate a magic label for this paragraph
|
||||
if (!fortoc) {
|
||||
// generate a magic label for this paragraph
|
||||
string const attr = "id='" + magicLabel() + "'";
|
||||
xs << CompTag("a", attr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user