Export white list: no separators

Bug reports and enhancement requests
Post Reply
Kdmeizk
Posts: 7
Joined: Mon Jun 22, 2015 4:22 pm

Export white list: no separators

Post by Kdmeizk »

NoScript version: 2.6.9.27

Description: After export the white list, we see no separators in the file between URLs. I don't want to test the import feature because I think the result will be "amazing".
Last edited by Kdmeizk on Tue Jun 23, 2015 9:07 am, edited 2 times in total.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

Re: Export white list: no separators

Post by barbaz »

Please explain more, what's a separator and what do you mean by amazing?

(If you didn't explain more due to a language barrier, I can try to do this in French...)
*Always* check the changelogs BEFORE updating that important software!
-
Kdmeizk
Posts: 7
Joined: Mon Jun 22, 2015 4:22 pm

Re: Export white list: no separators

Post by Kdmeizk »

You can look its content :

How NoScript can import this without a disaster ????????
Last edited by Kdmeizk on Sun Feb 14, 2016 12:58 pm, edited 1 time in total.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

Re: Export white list: no separators

Post by barbaz »

Ah. Notepad can't handle Unix style end-of-line marker ("\n") - it only knows Windows/DOS end-of-line marker ("\r\n") and it doesn't know what to do with plain \n

For me on Unix whitelist entries are separated by new line. (I've just done an export to verify that this is still how it works.)

You might be able to see it properly if you use a text editor like GVim which is cross platform and knows how to handle different types of line endings
Please do this and let us know how it works, just to double check that there isn't actually a Windows-specific bug here.
*Always* check the changelogs BEFORE updating that important software!
-
Kdmeizk
Posts: 7
Joined: Mon Jun 22, 2015 4:22 pm

Re: Export white list: no separators

Post by Kdmeizk »

notepad++ (I have already this) can handle and displays correctly. So no problems finally here again, sorry.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0
User avatar
therube
Ambassador
Posts: 7972
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: [CLOSED] Export white list: no separators

Post by therube »

That is pretty lame that notepad doesn't know how to handle an eol.

But should NoScript do more?
Can't it just check if OS = Windows, \r\n, else \n.
Or always use \r\n. Can't image there are such brain dead editors in Unix.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33.1
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

Re: [CLOSED] Export white list: no separators

Post by barbaz »

therube wrote:That is pretty lame that notepad doesn't know how to handle an eol.

But should NoScript do more?
Can't it just check if OS = Windows, \r\n, else \n.
I would imagine this wouldn't be too hard. It'd have to check for \r\n or \n on import though, but I can't imagine that'd be hard either.

OTOH just to work around a totally unrelated and unnecessary/replaceable program being lame, is it even worth Giorgio's effort when there are non-lame programs...
(And IIRC Notepad used to show a box for \n . Wonder what happened to that?)
therube wrote:Or always use \r\n
... which sometimes shows up as ^M followed by a newline in Unix? Image
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: [CLOSED] Export white list: no separators

Post by Thrawn »

Why add an unnecessary character on every line? If you're at the level where you want to manually edit your whitelist, you probably should have a better tool than Notepad. Even WordPad understands LF characters.

If, on the other hand, CR-LF doesn't import properly, then that would be an issue worth fixing.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
Post Reply