![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Maybe a bug?
Hi Kevin and Diap; I don't know if it's a bug or I'm doing something wrong. When one .xhtml file is linked to two or more css stylesheet, for example:
Code:
<link href="../Styles/Style0003.css" type="text/css" rel="stylesheet"/> <link href="../Styles/Style0004.css" type="text/css" rel="stylesheet"/> What is wrong? Regards |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Try using Go To Link or Style when the cursor in CV is on a class attribute that exists only in the second css file, and visa versa. Does that take you to the proper css sheets?
Yep - a bug as the CV code that handles this only looks at anchor tags "a" and not "link" tags. I can fix that. Last edited by KevinH; 08-21-2021 at 10:49 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
The issue seems to happen when I do click in the name of a stylesheet to open it in order to write a new style in it. When there is more than one sheet, always Sigil opens the first one. |
|
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Yes, from the looks of the code for GoToLinkOrStyle in CodeView, it was meant to work on href and src attributes that exist inside the body tag not inside of head. Also it improperly looked for a src attribute on link tags instead of href.
I have been able to fix these issues but understand, it will *NOT* recognize src attributes on script tags in head. I have pushed this fix to master. It should be in the next release. |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[BUG] - M96 out of memory - [BUG] | Alf77 | Onyx Boox | 5 | 02-05-2015 11:47 AM |
Aura HD Possible 2.8.1 bug | jackastor | Kobo Reader | 46 | 08-18-2013 04:22 PM |
DR800 Help, I've got a bug!! A bug on my screen!! | Franky | iRex | 4 | 06-21-2011 11:45 AM |
Embedded font bug or CSS bug in ADE | JSWolf | ePub | 10 | 06-11-2011 02:34 PM |
PRS-505 bug or eBookLib bug? | porkupan | Sony Reader | 3 | 10-07-2007 10:44 PM |