Full save ignores comment tags

2014-01-06 Thread Richard Porter
It would appear that doing a full save will save images even if 
their image  tags have been commented out. Of course the comment 
delimiters will be left in the html.

I also noticed that if two instances of the same image appear on a 
page using exactly the same URL, they are saved as two separate files. 
Netsurf saves the inventory so this could be avoided.

Just wondering of this behaviour is a) deliberate and b) desirable?

The reason is that I commented out some lines specifically to avoid 
getting duplicate images and it didn't work.

-- 
Richard Porterhttp://www.minijem.plus.com/
  mailto:r...@minijem.plus.com
I don't want a user experience - I just want stuff that works.



Recent changes kybosh El Reg comments

2014-01-06 Thread Richard Porter
I had this problem with the latest build. I tried to post a comment on 
The Register with post anonymously unticked and an icon selected. It 
came back with an error message Anonymous Cowards are not allowed to 
pick an image, the post anonymously box was ticked and a different 
(the last) icon was selected.

Resubmitting with the tick box unticked and/or none selected 
produced exactly the same result.

I tried again with release 2.9 and all was well.

Is anyone else seeing this problem?

-- 
Richard Porterhttp://www.minijem.plus.com/
  mailto:r...@minijem.plus.com
I don't want a user experience - I just want stuff that works.



Re: Recent changes kybosh El Reg comments

2014-01-06 Thread Richard Porter
On 6 Jan 2014 Daniel Silverstone  wrote:

 On Mon, Jan 06, 2014 at 16:10:24 +, Richard Porter wrote:
 I tried again with release 2.9 and all was well.
 Is anyone else seeing this problem?

 This is a bug in a huge form rewrite which occurred at the hack weekend.  It
 ought to be fixed by later tonight.

Thanks for the info.

-- 
Richard Porterhttp://www.minijem.plus.com/
  mailto:r...@minijem.plus.com
I don't want a user experience - I just want stuff that works.



Re: Full save ignores comment tags

2014-01-06 Thread Gavin Wraith
In message be73ccc553.r...@user.minijem.plus.com you wrote:

 It would appear that doing a full save will save images even if
 their image  tags have been commented out. Of course the comment
 delimiters will be left in the html.

 I also noticed that if two instances of the same image appear on a
 page using exactly the same URL, they are saved as two separate files.
 Netsurf saves the inventory so this could be avoided.

 Just wondering of this behaviour is a) deliberate and b) desirable?

 The reason is that I commented out some lines specifically to avoid
 getting duplicate images and it didn't work.

A long while ago I wrote an application, FewerGif, for removing
redundant gif files produced by TechWriter/EasiWriter when it exports a
document to HTML (see http://www.wra1th.plus.com/sundry.html ). This
could fairly easily be generalised to work for the results of a full
save, with any kind of image. Whether it is worth the effort is another
matter. FewerGif uses certain facts about Lua: a) files of any size can
be loaded as strings and b) string comparison is very fast, being just a
pointer-comparison.

-- 
Gavin Wraith (ga...@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/



NetSurf Developer workshop

2014-01-06 Thread Vincent Sanders
The write up of our recent developer weekend is now available [1] for
those interested in what we achived.

[1] 
http://vincentsanders.blogspot.co.uk/2014/01/netsurf-developer-workshop-redux.html

-- 
Regards Vincent