- $comment = '';
- if ($1 =~ m/(((^|\n)[ \t]*#.*)+)\n?[^\n]*$/) {
- $comment = $1;
- $comment =~ s/^\s+#\s*//;
- $comment =~ s/\n[ \t]*#\s*/\n/g;
- }
- push (@msgids, $msgid);
+ $comment = '';
+ if ($1 =~ m/(((^|\n)\s*(\[%)?\s*#.*)+)\n?[^\n]*$/) {
+ $comment = $1;
+ $comment =~ s/\[%//g;
+ $comment =~ s/%\]//g;
+ $comment =~ s/^\s+#\s*//;
+ $comment =~ s/\n[ \t]*#\s*/\n/g;
+ }
+ push (@msgids, $msgid);