summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@gmail.com>2009-04-13 17:21:44 -0400
committerTim Kientzle <kientzle@gmail.com>2009-04-13 17:21:44 -0400
commit42feb824f797bc7929abda8dd515b2e3da04c764 (patch)
treeac32898d0d139d9be48b92253dee194a20b14257 /doc
parent394873558f2b66014f6502f8fdf94b0ae59f0227 (diff)
downloadlibarchive-42feb824f797bc7929abda8dd515b2e3da04c764.tar.gz
Quote trailing '*' in type names (e.g., "void *")
SVN-Revision: 977
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/mdoc2wiki.awk4
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