View Single Post
Old 05-16-2025, 05:57 AM   #10759
crimson
Member
crimson ought to be getting tired of karma fortunes by now.crimson ought to be getting tired of karma fortunes by now.crimson ought to be getting tired of karma fortunes by now.crimson ought to be getting tired of karma fortunes by now.crimson ought to be getting tired of karma fortunes by now.crimson ought to be getting tired of karma fortunes by now.crimson ought to be getting tired of karma fortunes by now.crimson ought to be getting tired of karma fortunes by now.crimson ought to be getting tired of karma fortunes by now.crimson ought to be getting tired of karma fortunes by now.crimson ought to be getting tired of karma fortunes by now.
 
Posts: 20
Karma: 2070024
Join Date: Feb 2017
Location: UK
Device: None
Quote:
Originally Posted by JimmXinu View Post
The easiest way to add newlines to custom output is to make it multi-line in INI:
Code:
titlepage_entry:
 <b>${label}:</b> ${value}<br />
I don't know an easy way to get multiple empty newlines off hand.

Look at the newlines in txt for multiple empty newlines. Works the same in HTML.
Code:
# make sure to keep a single space on the line after this--it's
# one, empty newline for inclusion below.  Define in same section as entry.
newline:
 
# You can't see it, but there's a space on the line above.

titlepage_entry:
 <b>${label}:</b> ${value}<br />
 %(newline)s
I am unable to use %(newline)s. It says:


Code:
InterpolationMissingOptionError: Bad value substitution: option 'titlepage_entry' in section 'epub' contains an interpolation key 'newline' which is not a valid option name. Raw value: '<b>${label}:</b> ${value}<br />\n%(newline)s'
crimson is offline   Reply With Quote