From: Tim Kientzle Date: Mon, 13 Apr 2009 21:21:44 +0000 (-0400) Subject: Quote trailing '*' in type names (e.g., "void *") X-Git-Tag: v2.8.0~720 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=42feb824f797bc7929abda8dd515b2e3da04c764;p=thirdparty%2Flibarchive.git Quote trailing '*' in type names (e.g., "void *") SVN-Revision: 977 --- diff --git a/doc/mdoc2wiki.awk b/doc/mdoc2wiki.awk index c22b4f647..271fbedf5 100755 --- a/doc/mdoc2wiki.awk +++ b/doc/mdoc2wiki.awk @@ -345,7 +345,9 @@ function splitwords(l, dest, n, o, w) { } else if(match(words[w],"^S[xy]$")) { add(".B " wtail()) } else if(match(words[w],"^Tn$")) { - add("*" wtail() "*") + n=wtail() + gsub("\\*$", "`*`", n) + add("*" n "*") } else if(match(words[w],"^Ic$")) { add("\\fB") trailer="\\fP" trailer