View Single Post
Old 03-19-2024, 08:53 PM   #9388
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,033
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
EPUB Title Page Custom Output Wiki Page

The <br /> tag comes from default titlepage_entry which is effectively:
Code:
titlepage_entry:
 <b>${label}:</b> ${value}<br />
You could experiment with removing <br /> from titlepage_entry and instead building it into titlepage_entries or each individual X_label.

Code:
## Note that this version will *not* remove <br /> tags when a metadata is empty.
titlepage_entries: seriesHTML,<br />,category,<br />,genre,<br />,language,<br />,characters,<br />,ships,<br />,status,<br />,datePublished,<br />,dateUpdated,<br />,dateCreated,<br />,rating,<br />,warnings,<br />,numChapters,<br />,numWords,<br />,publisher,<br />,description

## Or maybe:
title_label:<br />Title
storyUrl_label:<br />Story URL
## ...
Or remove the <br /> tags, put <div>s & <span>s or and apply some smarter CSS instead of the brute force 90s formatting my brain still defaults to.

Example:
Code:
titlepage_entry:
 <div class='titlepage_entry' id='${id}'><span class='label'>${label}:</span> <span class='value'>${value}</span></div>

# otherwise description uses titlepage_wide_entry
wide_titlepage_entries:

add_to_output_css:
 .titlepage_entry .label { font-weight: bold;}
 #description > .label { display: none; }
This version has significant advantages if you are CSS savvy. You can adjust the CSS in Edit book and see what the output looks like without need to run FFF updates. Then update your output_css setting.
JimmXinu is offline   Reply With Quote