View Single Post
Old 03-31-2022, 03:41 PM   #5
lomkiri
Groupie
lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.
 
lomkiri's Avatar
 
Posts: 167
Karma: 1497966
Join Date: Jul 2021
Device: N/A
Quote:
Originally Posted by Skydog View Post
Unfortunately, it did not work. The result was one entry in the TOC, (Untitled).
It's because the content of all your breaking paragraphs is always "*".
You need to create some numeration with a search using a regex-function, put it in an hidden text, as this, for exemple:

<p class="PAGE-BREAK">*<span style="display:none"> Chapter 2</span></p>
[...]
<p class="CN" id="toc_2">*<span style="display:none"> Cn 6</span></p>

or better, put your "display:none" in a class in the CSS and
<p class="PAGE-BREAK">*<span class="toc_text"> Chapter 2</span></p>
[...]
<p class="CN" id="toc_2">*<span class="toc_text"> Cn 6</span></p>

The regex-function can use the parameter "number" to numerate your entries

__________
Edit: oops, I haven't seen Theducks' answer...

Last edited by lomkiri; 03-31-2022 at 03:46 PM.
lomkiri is offline   Reply With Quote