Linux Line endings?

806 views
Skip to first unread message

Peter Valdemar Mørch

unread,
May 18, 2016, 11:55:32 PM5/18/16
to AE Creations Help and Support Forums
Fantastic plugin! Thanks!

When I send the tabs to the clipboard on linux, the lines have does/windows-style newline characters[1], which are not appropriate for Linux. Is there any way to get proper Linux newlines?

Peter

1: https://blog.codinghorror.com/the-great-newline-schism/

ateng

unread,
May 21, 2016, 8:31:32 PM5/21/16
to AE Creations Help and Support Forums
Hi there,

You can override the newline characters that Send Tab URLs uses by adding the following string pref in about:config:
extensions.aecreations.sendtabs.message.line_break

Set its value to "\n".


Alex

---
AE Creations website
http://aecreations.sourceforge.net/

the AE Creations blog
http://aecreations.blogspot.com/

Peter Valdemar Mørch

unread,
May 23, 2016, 2:49:01 AM5/23/16
to AE Creations Help and Support Forums
Thanks, I've now tried that. I entered \n as two chars: backslash and n. These two chars seem to be inserted verbatim for each newline, though:

From Send Tab URLs (2 links)\n\n\nGoogle\nhttps://www.google.com/?gws_rd=ssl\n\nCisco Systems, Inc\nhttp://www.cisco.com/\n\n

These are two chars instead of a line-break; not a single line-break character. I also tried with "\n" (four chars) and I tried cut'n'pasting a newline from vim (which got converted to a space).
Is there some trick to entering a single \n char in about:config?

Peter Valdemar Mørch

unread,
May 23, 2016, 2:50:22 AM5/23/16
to AE Creations Help and Support Forums
And why isn't \n (ASCII 10) the default on Linux? A similar problem must exist for MACs.

ateng

unread,
May 27, 2016, 3:01:02 AM5/27/16
to AE Creations Help and Support Forums
Not sure why that didn't work.  This will have to be investigated further.

ateng

unread,
Jun 5, 2016, 3:41:34 PM6/5/16
to AE Creations Help and Support Forums
I've uploaded an alpha release build of Send Tab URLs which should fix this problem.  It will automatically use DOS/Windows line endings when running on Windows, and Linux/UNIX line endings on Linux and Mac OS X.

To get it, go to the Send Tab URLs page on Mozilla Add-ons, then scroll down and expand the Developer Channel panel an click the yellow "Add to Firefox" button.

Let me know if this works for you.

Peter Valdemar Mørch

unread,
Jun 5, 2016, 7:17:26 PM6/5/16
to AE Creations Help and Support Forums
Yes, that did the trick. It works exactly as I hoped.

ateng

unread,
Jun 8, 2016, 1:23:00 AM6/8/16
to AE Creations Help and Support Forums
Thanks for the feedback.  The official release of Send Tab URLs 2.3.1 will be out shortly, with this bug fix.
Reply all
Reply to author
Forward
0 new messages