diff options
author | Jonas Smedegaard <dr@jones.dk> | 2010-07-06 12:51:44 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2010-07-06 12:51:44 +0200 |
commit | 18cb08b3937f1684790f94469a575b69e19dd116 (patch) | |
tree | ce4305b38640490142e53c26d41aafd0e6462319 /localmarkdown2sms | |
parent | 86d6b0d3cb816d877601073d6e59cffde9a562ca (diff) |
Fix simplify ’ char using s// (using tr// expands it thrice).
Diffstat (limited to 'localmarkdown2sms')
-rwxr-xr-x | localmarkdown2sms | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/localmarkdown2sms b/localmarkdown2sms index 2de3476..fc771f6 100755 --- a/localmarkdown2sms +++ b/localmarkdown2sms @@ -182,7 +182,7 @@ sub tidymsg { $msg =~ s/(\S)\n([^\n])/$1 $2/g; # convert newline to space $msg =~ s/\h*$//g; # strip all trailing spaces $msg =~ s/^\s*(\w*?.*?)\s*$/$1/s; # strip surrounding space - $msg =~ tr/’/'/; #'simplify non-GSM chars + $msg =~ s/’/'/g; #'simplify non-GSM chars $msg =~ s/…/.../g; # simplify ellipsis $msg =~ s/\.\.+/.../g; # multiple dots → psudo-ellipsis return $msg; |