Skip to content

Commit

Permalink
changelog2spec: further escape %... statements if at begin of line,
Browse files Browse the repository at this point in the history
%% is not enough for %ifarch for example
  • Loading branch information
bugfinder committed Sep 2, 2009
1 parent 5876f19 commit 2380328
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions changelog2spec
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2380328

Please sign in to comment.