View Single Post
Old 11-02-2019, 12:24 AM   #9
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by KevinH View Post
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">&nbsp;ing 1</h1>
Should the extra &nbsp; be added?

* * *

Should Case 2 create a <p><br/></p> and Case 3 create a <h1 id="Test1Unique">?
Attached Files
File Type: epub BookView.Heading.ID.Test.epub (1.8 KB, 123 views)

Last edited by Tex2002ans; 11-02-2019 at 12:26 AM.
Tex2002ans is offline   Reply With Quote