aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2004-02-06 09:55:12 +0000
committerFrederic Lepied <flepied@mandriva.com>2004-02-06 09:55:12 +0000
commit445a48295b03ef1a25c68ae9c00d0557d4370739 (patch)
tree9b7aa792ba9adcf93968f121ef76939b36c1119f
parente5e55e43df50916cffc88455d0d8894f73ed721d (diff)
downloadspec-helper-445a48295b03ef1a25c68ae9c00d0557d4370739.tar
spec-helper-445a48295b03ef1a25c68ae9c00d0557d4370739.tar.gz
spec-helper-445a48295b03ef1a25c68ae9c00d0557d4370739.tar.bz2
spec-helper-445a48295b03ef1a25c68ae9c00d0557d4370739.tar.xz
spec-helper-445a48295b03ef1a25c68ae9c00d0557d4370739.zip
don't put 4 " in section field
-rwxr-xr-xtranslate_menu.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/translate_menu.pl b/translate_menu.pl
index b2cf6ae..c634e14 100755
--- a/translate_menu.pl
+++ b/translate_menu.pl
@@ -52,7 +52,7 @@ foreach my $file (@ARGV) {
open ($FILE, ">$file");
for my $l (@lines) {
chomp($l);
- if (( $l =~ /(.*section=")([^"]+)("\s+.*)/ ) or ( $l =~ /(.*section=)([^"].+?)((\s|\\)+.*)/ )) {
+ if (( $l =~ /(.*section=)"([^"]+)"(\s+.*)/ ) or ( $l =~ /(.*section=)([^"].+?)((\s|\\)+.*)/ )) {
my ($beg, $section, $end) = ($1, $2, $3);
$section = translate($section);
$l = "$beg\"$section\"$end";