diff --git a/scripts/deploy-ebook-to-www b/scripts/deploy-ebook-to-www index c1342518..ad0998c2 100755 --- a/scripts/deploy-ebook-to-www +++ b/scripts/deploy-ebook-to-www @@ -311,7 +311,7 @@ do printf "Recomposing ebook ... " fi - # Recompose the epub into a single file, but put it outside of the epub src for now so we don't stomp on it with the following sections. + # Recompose the epub into a single file, but put it outside of the epub source for now so we don't stomp on it with the following sections. # We do this first because the tweaks below shouldn't apply to the single-page file. se recompose-epub --xhtml --output "${workDir}"/single-page.xhtml --extra-css-file="${webRoot}/css/web.css" "${workDir}" @@ -322,7 +322,10 @@ do sed --in-place --regexp-extended "s|
]*)>|` element.
+ sed --in-place "s||\n\t\t|" "${workDir}"/single-page.xhtml
if [ "${verbose}" = "true" ]; then
printf "Done.\n"
@@ -330,34 +333,47 @@ do
fi
# Make some compatibility adjustments for the individual XHTML files.
+ workTitle=$(grep --only-matching --extended-regexp "