19 Aug 12:57
BSDBuild: r724 - trunk
From: Notices of SVN commits on the BSDBuild source repository <bsdbuild-commits@...>
Subject: BSDBuild: r724 - trunk
Newsgroups: gmane.comp.sysutils.bsdbuild.scm
Date: 2008-08-19 11:00:51 GMT
Subject: BSDBuild: r724 - trunk
Newsgroups: gmane.comp.sysutils.bsdbuild.scm
Date: 2008-08-19 11:00:51 GMT
Author: vedge
Date: 2008-08-19 08:00:07 -0300 (Tue, 19 Aug 2008)
New Revision: 724
Modified:
trunk/h2mandoc.pl
Log:
fix no .Ft case
Modified: trunk/h2mandoc.pl
===================================================================
--- trunk/h2mandoc.pl 2008-08-19 10:58:07 UTC (rev 723)
+++ trunk/h2mandoc.pl 2008-08-19 11:00:07 UTC (rev 724)
@@ -110,13 +110,15 @@
my $fnName = $1;
my $argList = $2;
$type =~ s/\n//g;
- print '.Ft "'.$type."\"\n";
- print '.Fn '.$fnName;
- foreach my $arg (split(',', $argList)) {
- $arg =~ s/\s*([\w\s]+)\s*/$1/g;
- print ' "'.$arg.'"';
+ if ($type) {
+ print '.Ft "'.$type."\"\n";
+ print '.Fn '.$fnName;
+ foreach my $arg (split(',', $argList)) {
+ $arg =~ s/\s*([\w\s]+)\s*/$1/g;
+ print ' "'.$arg.'"';
+ }
+ print "\n.Pp\n";
(Continue reading)
RSS Feed