akipta / autokey

Automatically exported from code.google.com/p/autokey
GNU General Public License v3.0
0 stars 0 forks source link

Plus ('+') character not escaped properly in phrase #298

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Create a phrase with an address and phone number, and have a leading plus 
character ('+') in the phone number.  Something like this:

300 Sparta Ave., Anywhere, AL 36507
+1.256.867.5309

2.  Set it to Paste using Keyboard (mostly I intend to use this in a 
rxvt-unicode-256color terminal window)

3.  Set any trigger (abbreviation, or hot key, it doesn't matter)
4.  Activate the phrase, having it typed into e.g. a text editor

Expected output:

300 Sparta Ave., Anywhere, AL 36507
+1.256.867.5309

What I see:

300 Sparta Ave., Anywhere, AL 36507<enter>+1.256.867.5309

If I remove '+' from the phrase, it pastes OK, as expected.  But it doesn't 
match my signature at work.  

What version of the product are you using? On what operating system?
Using 0.90.4 (from Precise .deb) on Debian Wheezy.

Please provide any additional information below.

Unfortunately I'm not well versed in Python, but it seems like '+' is somehow 
escaping the newline, so "<enter>" gets printed rather than a newline.  The '+' 
is most definitely printed, so my first thought of the '+' concatenation 
operator seems wrong, but that may be a clue.

Original issue reported on code.google.com by trey.bla...@gmail.com on 15 Jan 2015 at 11:23