View Single Post
Old 04-02-2014, 01:52 AM   #1
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
[Solved] I'm a little confused about the Fix HTML - all files Tool

This is the first unexpected behavior I ran into. I had the following:

<p class="calibre2">Chapter 2 — Qwerty</p>

I replaced all, to swap the <p class="calibre2">Chapter with <h2>Chapter and ended up with:

<h2>Chapter 2 — Qwerty</p>

I ran the Fix HTML - all files Tool and ended up with:

</h2><h2>Chapter 2 — Qwerty</p>

The </h2> was closing the Chapter 1 <h2> tag. What I expected was:

<h2>Chapter 2 — Qwerty</h2>

Was my expectation unreasonable?

What would be a better method to make this <p> to <h2> change keeping in mind the second part (Qwerty) is different for every chapter?

Last edited by DoctorOhh; 04-02-2014 at 02:53 AM.
DoctorOhh is offline   Reply With Quote