[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE_3_3_BRANCH: kdesdk/scripts
From:       Ben Burton <bab () debian ! org>
Date:       2005-03-31 10:24:45
Message-ID: 20050331102445.060884A6 () office ! kde ! org
[Download RAW message or body]

CVS commit by benb: 

Fix output in UTF-8 locales by using minus instead of hyphen.  Thanks to Achim Bohnet for the patch.


  M +5 -1      kdemangen.pl   1.6.2.1


--- kdesdk/scripts/kdemangen.pl  #1.6:1.6.2.1
@@ -69,4 +69,7 @@
             if( $3 ) { $arg = $3; } else { $arg = ""; };
             if( $4 ) { $desc = $4; } else { $desc = ""; };
+            $short =~ s/-/\\-/g;
+            $long =~ s/-/\\-/g;
+            $arg =~ s/-/\\-/g;
             $ret .= ".TP\n";
             $ret .= ".B $short $long $arg\n";
@@ -201,4 +204,5 @@
 my $synopsis = `$runapp --help | sed -n '1p' | sed -e 's/[^:]*: //'`;
 chomp $synopsis;
+$synopsis =~ s/-/\\-/g;
 my $appname = $synopsis;
 $appname =~ s/ .*$//;
@@ -228,5 +232,5 @@
 .SH NAME
 $appname
-\- $shortdescription
+\\- $shortdescription
 .SH SYNOPSIS
 $synopsis


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic