From: Andres Mejia Date: Thu, 2 Feb 2012 22:48:18 +0000 (-0500) Subject: Fix spacing around .Ar and .Cm macros. X-Git-Tag: v3.0.4~2^2~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3707cd39b0478469745ceaa40aa5b7e5d1a231b9;p=thirdparty%2Flibarchive.git Fix spacing around .Ar and .Cm macros. SVN-Revision: 4229 --- diff --git a/doc/mdoc2mediawiki.awk b/doc/mdoc2mediawiki.awk index fe6b164b5..119eee0a3 100755 --- a/doc/mdoc2mediawiki.awk +++ b/doc/mdoc2mediawiki.awk @@ -258,16 +258,16 @@ function splitwords(l, dest, n, o, w) { addopen("-") } else if(match(words[w],"^Ar$")) { if(w==nwords) - add("''file ...''") + add("''file ...''" " ") else { ++w gsub("<", "<", words[w]) - add("''" words[w] "''") + add("''" words[w] "''" " ") } } else if(match(words[w],"^Cm$")) { ++w if (displaylines == 0) { - add("'''" words[w] "'''") + add("'''" words[w] "'''" " ") } else add(words[w]) } else if(match(words[w],"^Op$")) {