Quote:
Originally Posted by KevinH
I may be able to work around it but that will take some experimentation. I am travelling now but will look to see if there is any way to force a p state after every h6 when I get back.
|
I attached a test EPUB:
Code:
<h1 id="Test1">Heading 1</h1>
<h2 id="Test2">Heading 2</h2>
<h3 id="Test3">Heading 3</h3>
<h4 id="Test4">Heading 4</h4>
<h5 id="Test5">Heading 5</h5>
<h6 id="Test6">Heading 6</h6>
(I tested this in Sigil 0.9.14, Book View. Not sure about PageEdit + latest.)
It's as parvatiquinta says.
1. If you place the cursor after "Heading 1-5" and press Enter:
Code:
<h1 id="Test1">Heading 1</h1>
<div><br/></div>
(Should <div> be changed to <p>? This is similar to how Word/LibreOffice/GoogleDocs works.)
2. If you place cursor after "Heading 6" and press Enter:
Code:
<h6 id="Test6">Heading 6</h6>
<h6 id="Test6"><br/></h6>
it creates an <h6>, and also carries over the
id="Test6".
Both get the same exact
id. Not sure if that should be intended... same id is invalid... but not sure on what the best solution should be.
3. If you place a cursor between heading text + press Enter:
Code:
<h1 id="Test1">Head</h1>
<h1 id="Test1"> ing 1</h1>
Should the extra be added?
* * *
Should Case 2 create a <p><br/></p> and Case 3 create a <h1 id="Test1Unique">?