MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   Header loosing centering when changing views (https://www.mobileread.com/forums/showthread.php?t=60126)

ghostyjack 10-22-2009 04:13 PM

Header loosing centering when changing views
 
I was wondering if anyone was also seeing this.

At the top of my page in book view I create the title and set it with a h1 tag. I then center it. It all looks fine.

Later after editing the content of the book using a mix of the views (depending on which view is easier for the specific type of editing), I then go back to the top of the book and find that the title that should be centered is now on the left.

I re-center it and carry on working. Later I go back to the top and find the title has again moved to the left.

I look at the title in code view and find this:

h2.sgc-4 {text-align: center;}

<h1 class="sgc-4">Title</h1>

I've taken the corresponding text from the file to show you. Now if I'm reading the code correctly, shouldn't the sigil class have h1 in it and not h2?

Also if I re-center the title and look at the code again, I'll find the code will look like: <h1 class="sgc-4 sgc-4">Title</h1>

As far as I can tell h2.sgc-4 {text-align: center;} is for when I center a h2 tag and not a h1 tag. So why am I not getting a h1 sigil class being generated.

Valloric 10-22-2009 04:31 PM

Quote:

Originally Posted by ghostyjack (Post 634248)
I look at the title in code view and find this:

h2.sgc-4 {text-align: center;}

<h1 class="sgc-4">Title</h1>

I've taken the corresponding text from the file to show you. Now if I'm reading the code correctly, shouldn't the sigil class have h1 in it and not h2?

Probably a bug in HTML Tidy. Try to create a reproducible test case and create an issue with the step-by-step instructions on the tracker.

Quote:

Originally Posted by ghostyjack (Post 634248)
Also if I re-center the title and look at the code again, I'll find the code will look like: <h1 class="sgc-4 sgc-4">Title</h1>

That's a somewhat related, but much bigger problem.

sjkramer 12-14-2009 08:09 PM

I'm encountering this problem as well.

Valloric 12-14-2009 08:25 PM

Quote:

Originally Posted by sjkramer (Post 696764)
I'm encountering this problem as well.

As I've instructed the original poster, an issue needs to be created so I can track it, test it, confirm it and finally fix it. The bug reporter needs to create a step-by-step procedure that replicates the problem, as this wiki page instructs.

I've created such an issue now myself, but in the future, do try to follow the prescribed procedure for reporting bugs. It's there to help you, the users. Detailed issue reports make fixing bugs easier and faster, and I'd think this is in everyone's best interest, especially the user's.

Valloric 12-14-2009 09:13 PM

And this is now fixed.

ghostyjack 12-15-2009 07:19 PM

Aaahh!! :smack:

I new I was going to to raise another issue on the tracker, but I couldn't remember what it was.

Sorry. :o

sjkramer 12-21-2009 02:46 PM

Quote:

in the future, do try to follow the prescribed procedure for reporting bugs. It's there to help you, the users. Detailed issue reports make fixing bugs easier and faster, and I'd think this is in everyone's best interest, especially the user's.
Advice taken. Sorry about that. I don't always know if something is a bug or if I'm doing something wrong. In future I will follow procedure!


All times are GMT -4. The time now is 06:44 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.