On Oct 2, 2010, at 1:20, Christiaan Hofman wrote:

> 
> On Oct 2, 2010, at 0:28, JiHO wrote:
> 
>> On Fri, Oct 1, 2010 at 12:09, Christiaan Hofman <[email protected]> wrote:
>>> Everything works perfectly except that changes to an external
>>>> CSS file are not reflected in the preview pane after a refresh (as are
>>>> changes to the HTML files, including to inline CSS declarations in an
>>>> HTML file). A restart of BibDesk is required.
>>> 
>>> That makes no sense, as there's absolutely nothing cached, only the file 
>>> location is remembered.
>> 
>> I have just retested it with Bibdesk 2010-09-30 and the behaviour is
>> the same. Here are some steps to reproduce it:
>> 
>> - create a new HTML template with
>> 
>>      test.html: Main Page
>>              <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN"
>>              "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>>              <html xmlns="http://www.w3.org/1999/xhtml";>
>>                      <head>
>>                              <meta http-equiv="content-type" 
>> content="text/html; charset=utf-8" />
>>                              <link rel="stylesheet" href="test.css" 
>> type="text/css"
>> media="screen" title="no title" charset="utf-8"/>
>>                      </head>
>>                      <body>
>>                              <$publicationsUsingTemplate/>
>>                      </body>
>>              </html>
>> 
>>      testItem.html: Default Item
>>              <$fields.Title/>
>>      
>>      test.css: Accessory file
>>              body { color: black; }
>> 
>> - select this new HTML template in the preview
>> 
>> - change the color from "black" to "red" in the css and save the file
>> 
>> - add something to testItem.html, like: "Title: <$fields.Title/>"
>> 
>> - go back to BibDesk and choose a new bibliography record, or change
>> the template in the preview and change it back to the test one. Both
>> these things refresh the preview pane and change the text according to
>> the change in testItem.html but do not change the color of the text
>> 
>> - add some inline CSS in test.html
>>      <style type="text/css" media="screen">
>>              body{ color: blue; }
>>      </style>
>>      
>> - now refresh the view (as above) and it changes the color to blue.
>> 
>> - remove the inline css and refresh; the text is back to black
>> 
>> - restart BibDesk; the text is now red.
>> 
>> I hope that helps pinpoint the issue.
>> 
>> JiHO
>> ---
>> http://maururu.net
> 
> This is truly weird. I can confirm that the (generated) source html and css 
> files that are used to generate the preview are properly updated. But the 
> generated attributed string does not reflect the change in the .css file, 
> even if it's generated from the changed files. It must be something in the 
> web engine used by the system that's caching something. Certainly a system 
> bug, not much chance we can fix this.
> 
> Christiaan
> 

Yes, I did find a workaround for the issue! Anyway, bug filed with Apple.

Christiaan


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to