View Single Post
Old 09-10-2024, 06:18 AM   #10
Jasonc310771
Member
Jasonc310771 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Sep 2024
Device: calibre
I have checked all headings and all have the same style/font/spacing/margin, I just apply the heading and change the colour and size. I have tried to copy/format and past but still this does not fix it. Why would all other headings work as expected yet this one fails. I have delete the heading and a few lines of text before and after the heading, then retyped manually the text. But still at this very same section the page breaks. yet there are no hidden break or special characters.

In Calibre I go in to edit book, and view the html code, here is the end of the html before the unwanted page break.

<p class="block_4"><span class="calibre5"> </span>‘It’s all right,’<span class="calibre5"> he says, softly. </span>‘<span class="calibre5">I’m not blaming you. It’s only natural really, that you should feel like that. Only</span>…’ He pauses, and I look up. ‘Your home is in England now, Odette,’<span class="calibre5"> he continues, very gently. </span>‘Don’t you think you should be making the best of your life here?’</p>
<p class="block_4"><span class="calibre5"> I bite my lip. </span>‘<i class="calibre6">J’essaie,</i>’<span class="calibre5"> I reply. Then, </span><i class="calibre6">‘C’est difficile.</i>’<span class="calibre5"> And then I realise. I’m still speaking in French. And in fact, in all the years I live in England, I never lose my French accent. And that night, and every other night, for all the rest of my life, I dream in French.</span></p>
<p class="block_5">*</p>
</body></html>


this is the html after the unwanted page break.

Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>
    <title>Unknown</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <link rel="stylesheet" type="text/css" href="stylesheet.css"/>
<link rel="stylesheet" type="text/css" href="page_styles.css"/>
</head>
  <body class="calibre">
<h1 class="block_9" id="toc_id_138">THE BASKET</h1>
	<p class="block_10">*</p>
	<p class="block_4"><span class="calibre5">On my birthday, there’s a letter from Maman.  Crisp blue envelope covered in thin strokes of ink.  Send it back.  I don’t want to read it.  I don’t want to read the word we can’t ever bring ourselves to say.</span> <i class="calibre6">Cancer</i>. The same in both languages.</p>


page_style.css
@page {
  margin-bottom: 5pt;
  margin-top: 5pt;
}

this is the stylesheet.css

.block_ {
  display: block;
  font-family: serif;
  font-size: 0.75em;
  line-height: 1.08;
  text-align: center;
  margin: 0 0 8pt;
  padding: 0;
}
.block_1 {
  display: block;
  font-size: 2em;
  line-height: 1.08;
  text-align: center;
  margin: 0 0 8pt;
  padding: 0;
}
.block_2 {
  display: block;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 8pt;
  padding: 0;
}
.block_3 {
  display: block;
  line-height: 1.2;
  page-break-after: always;
  margin: 0 0 8pt;
  padding: 0;
}
.block_4 {
  display: block;
  line-height: 1.2;
  margin: 0 0 8pt;
  padding: 0;
}
.block_5 {
  display: block;
  font-family: serif;
  font-size: 0.75em;
  line-height: 1.08;
  margin: 0 0 8pt;
  padding: 0;
}
.block_6 {
  display: block;
  font-style: italic;
  line-height: 1.2;
  margin: 0 0 8pt;
  padding: 0;
}
.block_7 {
  display: block;
  font-size: 1.125em;
  font-weight: bold;
  line-height: 1.2;
  page-break-after: avoid;
  page-break-inside: avoid;
  margin: 12pt 0 0;
  padding: 0;
}
.block_8 {
  display: block;
  font-size: 1.125em;
  line-height: 1.2;
  margin: 0 0 8pt;
  padding: 0;
}
.block_9 {
  display: block;
  font-size: 1.125em;
  font-weight: normal;
  line-height: 1.2;
  page-break-after: avoid;
  page-break-inside: avoid;
  margin: 12pt 0 0;
  padding: 0;
}
.block_10 {
  display: block;
  font-family: serif;
  font-size: 0.75em;
  margin: 0;
  padding: 0;
}
.block_11 {
  display: block;
  line-height: 1.2;
  text-align: justify;
  margin: 0 0 8pt;
  padding: 0;
}
.block_12 {
  display: block;
  font-family: serif;
  font-size: 0.75em;
  line-height: 1.08;
  text-align: justify;
  margin: 0 0 8pt;
  padding: 0;
}
.block_13 {
  display: block;
  font-size: 1.125em;
  line-height: 1.2;
  page-break-after: always;
  margin: 0 0 8pt;
  padding: 0;
}
.block_14 {
  display: block;
  font-size: 0.75em;
  line-height: 1.08;
  margin: 0 0 8pt;
  padding: 0;
}
.block_15 {
  display: block;
  font-size: 1.125em;
  font-style: italic;
  line-height: 1.2;
  margin: 0 0 8pt;
  padding: 0;
}
.block_16 {
  display: block;
  font-size: 1.125em;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 8pt;
  padding: 0;
}
.calibre {
  display: block;
  font-family: "Garamond", serif;
  font-size: 1em;
  padding-left: 0;
  padding-right: 0;
  margin: 0 5pt;
}
.calibre1 {
  line-height: 1.2;
}
.calibre2 {
  height: 52.5pt;
  line-height: 1.2;
  width: 116pt;
}
.calibre3 {
  display: block;
  page-break-after: always;
  margin: 0;
  padding: 0;
}
.calibre4 {
  display: block;
  line-height: 1.2;
}
.calibre5 {
  line-height: 1.2;
  white-space: pre-wrap;
}
.calibre6 {
  font-style: italic;
  line-height: 1.2;
}
.calibre7 {
  font-weight: bold;
  line-height: 1.2;
}
.calibre8 {
  font-size: 0.75em;
  line-height: normal;
  vertical-align: super;
}
.tab {
  line-height: 1.2;
  white-space: pre-wrap;
}
.text_ {
  font-style: italic;
  letter-spacing: -0.4pt;
  line-height: 1.2;
}
.text_1 {
  background-color: #FFF;
  font-style: italic;
  line-height: 1.2;
}
.text_2 {
  font-style: italic;
  font-weight: bold;
  line-height: 1.2;
}
.text_3 {
  font-style: italic;
  line-height: 1.2;
  text-decoration: underline solid;
}
.text_4 {
  font-size: 1.33333em;
  line-height: 1.2;
}
.text_5 {
  font-size: 1.33333em;
  font-style: italic;
  line-height: 1.2;
}
.text_6 {
  font-size: 1.5em;
  line-height: 1.2;
}

I do not want to be editing these files if I can help it, just fix the issue in the original word document.

Last edited by issybird; 09-10-2024 at 07:14 AM.
Jasonc310771 is offline   Reply With Quote