MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Editor (https://www.mobileread.com/forums/forumdisplay.php?f=262)
-   -   Live CSS panel clickable links (https://www.mobileread.com/forums/showthread.php?t=240630)

Section8 06-07-2014 01:54 AM

Live CSS panel clickable links
 
I'm using calibre 1.39 on linux here.

First, I want to say that I love the new editor Live CSS feature. Whenever I edit an epub I've purchased, it's usually to tweak the css formatting to suit my preferences and work around ereader (nook) formatting bugs. The Live CSS panel clickable class links are a real tedium saver here.

However, I've worked on several epubs where the clickable links in the live CSS panel consistently link to the wrong css class. After some experimenting with different epubs in my library, I think I've found a pattern. The css @font-face statement seems to throw it off. If a .css file contains 3 @font-face statements, all the Live CSS links in that file will link 3 classes after the correct class. The @charset statement has a similar affect - if a .css file has an @charset statement at the beginning, all of the Live CSS links are 1 class after the correct class.

kovidgoyal 06-07-2014 02:25 AM

It would be helpful if you could attach a demonstration epub, in my testing @font-face rules dont seem to cause a problem.

Section8 06-07-2014 04:08 AM

1 Attachment(s)
Thanks, Kovid.

With the attached epub, if I click on the link to "p.para", the editor highlights "p.para-1b"

kovidgoyal 06-07-2014 05:10 AM

Fix will be in next release.

Section8 06-07-2014 10:55 AM

Thank you


All times are GMT -4. The time now is 08:59 PM.

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