$SRC_ANCHOR in HTML and EPUB compiles

da
dayofthedave
Posts: 18
Joined: Wed Jan 18, 2012 12:56 am
Platform: Mac + Windows

Sun Sep 16, 2018 2:18 am Post

I just updated from Scrivener 2 to Scrivener 3, and I imported all my compile presets.

For my HTML and EPUB presets, all of my sections now have code like this near the top:

Code: Select all

{$SCR_ANCHOR::doc1$END_SCR_ANCHOR}


And to make matters worse, my heading font does not include curly braces, which wind up getting wrapped in span tags, like this:

Code: Select all

<p class="p1"><span class="s1">{</span><span class="s2">$SCR_ANCHOR::doc1$END_SCR_ANCHOR</span><span class="s1">}</span><span class="s2">Hello, world!</span></p>


So fixing this with search/replace is no easy task.

Jo
JoRo
Posts: 414
Joined: Sat May 26, 2018 6:40 am
Platform: Mac

Sun Sep 16, 2018 8:43 am Post

If you compile with the built-in HTML and ePub formats, do you get the same results?

Slàinte mhòr.