From 23803282b9719046e8b1af8c44717e6ef30aefd7 Mon Sep 17 00:00:00 2001 From: Ruediger Oertel Date: Wed, 2 Sep 2009 10:27:26 +0000 Subject: [PATCH] changelog2spec: further escape %... statements if at begin of line, %% is not enough for %ifarch for example --- changelog2spec | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog2spec b/changelog2spec index 39a0f0e..9160e75 100755 --- a/changelog2spec +++ b/changelog2spec @@ -215,6 +215,7 @@ while(defined($_)) { @gm = (0, 0, 0, 2, 0, 97, 4) if $gm[5] < 97 || ($gm[5] == 97 && $gm[4] == 0 && $gm[3] <= 1); printf("* %s %s %2d %4d %s\n", $wday[$gm[6]], $mon[$gm[4]], $gm[3], $gm[5] + 1900, $who); $changes =~ s/%/%%/g; + $changes =~ s/^(\s*)%%(\S*)/$1\[%%$2\]/; $changes =~ s/^(\s*)(\#\d*)/$1\[$2\]/mg; $changes =~ s/^\*/ */mg; print $changes; -- 2.7.4