View Single Post
Old 04-05-2011, 10:49 AM   #25
DreamWriter
Books are brain food.
DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.
 
DreamWriter's Avatar
 
Posts: 2,950
Karma: 4836916
Join Date: Nov 2010
Location: U.S.
Device: Paperwhite · Fire HD6/HD8/HD10 · Galaxy Tab A7
Completed changed (edited)!

Ugh, MS Word makes such a mess of things when converting to HTML!

First, make sure you have backed up the HTML in case this doesn't work as expected. Also, you might want to change just a few chapters and test before changing your entire document.

For Chapter 1, I would probably delete everything in red:
Code:
<mbp:pagebreak />

<p class=MsoNormal style='line-height:150%'><b><span style='font-size:12.0pt;
line-height:150%;font-family:"Times New Roman"'>&nbsp;</span></b></p>

<b><u><span style='font-size:18.0pt;line-height:115%;font-family:"Times New Roman";
color:black'><br clear=all style='page-break-before:always'>
</span></u></b>

<h1 class="heading1style" id="_Toc289087672">My Chapter One Name</h1>
<br>
</h1>
What you'll be left with is:
Code:
<mbp:pagebreak />
<h1 class="heading1style" id="_Toc289087672">My Chapter One Name</h1>
Deletion of that coding may remove a blank line or two above your chapter heading because &nbsp; adds a blank line. If needed, you could add coding to the h1 style to move the heading down a bit, like this (add in whatever number of pts works for you):
Code:
margin-top:5pt;
In this section of the removed code above, it was instructing to break the page:
Code:
style='page-break-before:always'
So, when you added that page-break code to the h1 heading style, now you have two page breaks, which creates a blank page. I believe the <u> and </u> codes there were causing the small underlines.

For your second (and subseqent?) chapters, I would delete all the coding in red:
Code:
<mbp:pagebreak />

<b><u><span style='font-size:18.0pt;line-height:115%;font-family:"Times New Roman";
color:black'><br clear=all style='page-break-before:always'>
</span></u></b>

<h1><span style='text-decoration:none'>&nbsp;</span></h1>

<h1 class="heading1style" id="_Toc289087673">My chapter 2 name</h1>
So, what you're left with is:
Code:
<mbp:pagebreak />
<h1 class="heading1style" id="_Toc289087673">My chapter 2 name</h1>
Let me know if that works. At least you're making progress in the right direction!

Last edited by DreamWriter; 04-05-2011 at 11:35 AM.
DreamWriter is offline   Reply With Quote