diff options
author | jhaegg <jhaegg> | 2002-09-11 08:24:57 +0000 |
---|---|---|
committer | jhaegg <jhaegg> | 2002-09-11 08:24:57 +0000 |
commit | 50545e371fa70f31d349391082335e1291718caa (patch) | |
tree | efa677e7fe9c4d2a1535b74aa91c69230c8870cd | |
parent | c196b61a6b87f2238948529f031396dabc721af4 (diff) | |
download | groff-50545e371fa70f31d349391082335e1291718caa.tar.gz |
* added implicit -mm to mmroff, it's now possible
to use mmroff with or without -mm as argument.
-rw-r--r-- | contrib/mm/ChangeLog | 5 | ||||
-rw-r--r-- | contrib/mm/mmroff.pl | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog index 4937b466..3033a1ff 100644 --- a/contrib/mm/ChangeLog +++ b/contrib/mm/ChangeLog @@ -1,3 +1,8 @@ +Wed Sep 09:53:06 2002 Joergen Haegg <jh@axis.com> + + * added implicit -mm to mmroff, it's now possible + to use mmroff with or without -mm as argument. + Thu Aug 08 00:31:00 Bob Diertens <bobd@science.uva.nl> * m.tmac (VM): Add missing backslash. diff --git a/contrib/mm/mmroff.pl b/contrib/mm/mmroff.pl index 1a4ff46d..155550bf 100644 --- a/contrib/mm/mmroff.pl +++ b/contrib/mm/mmroff.pl @@ -14,8 +14,10 @@ if (grep(/^-x$/, @ARGV)) { @ARGV = grep(!/^-x$/, @ARGV); } -my $check_macro = "groff -rRef=1 -z @ARGV"; -my $run_macro = "groff @ARGV"; +# mmroff should always have -mm, but not twice +@ARGV = grep(!/^-mm$/, @ARGV); +my $check_macro = "groff -rRef=1 -z -mm @ARGV"; +my $run_macro = "groff -mm @ARGV"; my (%cur, $rfilename, $max_height, $imacro, $max_width, @out, @indi); open(MACRO, "$check_macro 2>&1 |") || die "run $check_macro:$!"; |