diff options
author | Tim Kientzle <kientzle@gmail.com> | 2009-04-13 17:21:44 -0400 |
---|---|---|
committer | Tim Kientzle <kientzle@gmail.com> | 2009-04-13 17:21:44 -0400 |
commit | 42feb824f797bc7929abda8dd515b2e3da04c764 (patch) | |
tree | ac32898d0d139d9be48b92253dee194a20b14257 /doc | |
parent | 394873558f2b66014f6502f8fdf94b0ae59f0227 (diff) | |
download | libarchive-42feb824f797bc7929abda8dd515b2e3da04c764.tar.gz |
Quote trailing '*' in type names (e.g., "void *")
SVN-Revision: 977
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/mdoc2wiki.awk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/mdoc2wiki.awk b/doc/mdoc2wiki.awk index c22b4f64..271fbedf 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 |