View Single Post
Old 10-04-2024, 08:29 PM   #3
retiredbiker
Evangelist
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
Quote:
Originally Posted by AaronMo View Post
Hey Everyone,

inDesign automatically added idText Anchors to my chapter headings. I have very short chapters and don't include them in the TOC. I'm inclined to remove these. Are there any good reasons to leave them in?

Second question, is there a way to quickly remove them rather than go line by line? Or more specifically, is there a way to use regex \d or similar to search <a id="_idTextAnchor024"></a></h3> so that \d replaces 024?

Thanks
If you are not using them, you can probably get rid of them without causing a problem. Just make sure that anchor string is not used somewhere else where you DO want it. Try a regex search for
Code:
<a id="_idTextAnchor\d+"></a>
and replace with nothing.

If you want to prevent the problem, maybe head your chapters with a styled <p> instead of some <h> and they likely won't get the anchors (guessing, since I don't use InDesign)
retiredbiker is offline   Reply With Quote