diff options
author | John Ankarström <john@ankarstrom.se> | 2020-11-13 01:52:34 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2020-11-15 21:36:44 +0100 |
commit | c71a898216c4bcfa0c5195df857b2aa09a9636a4 (patch) | |
tree | 910ba26ace5a09998113df4016d205f881b3db57 | |
parent | 33c40ee8228a0ceac856a3962e9ad3af712625c5 (diff) | |
download | rf-c71a898216c4bcfa0c5195df857b2aa09a9636a4.tar.gz |
add field m (misc)
-rwxr-xr-x | rf | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -48,7 +48,7 @@ for (my $i = $#lines; $i >= 0; $i--) { chomp; # Reference definition - if (/^\.R([acdnpqtwy]) +(.*)/) { + if (/^\.R([acdmnpqtwy]) +(.*)/) { my ($fld, $rest) = ($1, $2); $refi++ if not $refblock; # new reference @@ -163,8 +163,8 @@ for (my $i = $#r; $i >= 0; $i--) { sub fmt { my ($fmt, $i) = @_; my %ref = %{$refs[$i]}; - for my $fld (split //, 'Aacdnpqtwy') { - if ($ref{lc $fld}) { + for my $fld (split //, 'Aacdmnpqtwy') { + if ($ref{lc $fld}) { # interpolate no warnings; my $val = $ref{lc $fld}; $val = join '; ', @$val if lc $fld eq 'a'; |