b.keith

I’ve not yet decided InDesign’s page breaks are superior to pagestaker in anything beside straight up fiction for reasons like this.

You could try using something that is the same length/size as an em-space instead of :emsp: … a math symbol? Then do the replace afterwards. My workflow relies heavily on post-InDesign processing because its easier to make it output things in a consistent way and replace them with what I actually want.

E.g. I replace context breaks with “BREAK” and then my python script runs a series of search and replaces including changing BREAK to <hr class="break" />. A simple fairly simple python script can open the epub, run the search and replaces and save it again in a couple of seconds.

The other option might be to use character styles since InDesign epub exports maintain those styles on spaces. Still a bit of post processing but maybe your existing script can handle that better?

a wooden table with a white keyboard on top, and a persons hand writing on a piece of paper

View our current resources