View Single Post
Old 11-02-2016, 11:11 AM   #1601
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,025
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
@MerlinMama - I don't see that using the default settings.

But I do see it using custom chapter_start settings, so I assume that you are using those.

The INI config parser strips off trailing whitespace automatically whether we want it to or not. I've worked around it for a few other parameters by explicitly replacing \s with space once it's in my code. However, I can't do that for all parameters because it can be a legitimate part of a path or a regex.

I'll think about it a bit, but I don't expect to have any brainstorms. In the meantime, you could add something to the end of chapter_start to separate the title from the chapter text.
Code:
[epub]

chapter_start:<?xml version="1.0" encoding="UTF-8"?>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title>${chapter}</title>
 <link href="stylesheet.css" type="text/css" charset="UTF-8" rel="stylesheet"/>
 <meta name="chapterurl" content="${url}"></meta>
 <meta name="chapterorigtitle" content="${origchapter}"></meta>
 <meta name="chaptertoctitle" content="${tocchapter}"></meta>
 <meta name="chaptertitle" content="${chapter}"></meta>
 </head>
 <body>
 <h3>${chapter}</h3>
 &nbsp;

# (Leading whitespace is left alone, so chapter_end is easy.)
chapter_end:
 </body>
 </html>
JimmXinu is offline   Reply With Quote