]> andersk Git - openssh.git/blobdiff - mdoc2man.awk
- djm@cvs.openbsd.org 2009/03/05 11:30:50
[openssh.git] / mdoc2man.awk
index 67eb25c0813fd0c2042573e63ca2150e8e6b1e46..7ad1457873eb4e1c0e4662a1110ae5054865259c 100644 (file)
@@ -166,6 +166,7 @@ function add(str) {
       refissue=""
       refdate=""
       refopt=""
+      refreport=""
       reference=1
       next
     } else if(match(words[w],"^Re$")) {
@@ -177,9 +178,14 @@ function add(str) {
       }
       if(nrefauthors>1)
        add(" and ")
-      add(refauthors[0] ", \\fI" reftitle "\\fP")
+      if(nrefauthors>0)
+        add(refauthors[0] ", ")
+      add("\\fI" reftitle "\\fP")
       if(length(refissue))
        add(", " refissue)
+      if(length(refreport)) {
+       add(", " refreport)
+      }
       if(length(refdate))
        add(", " refdate)
       if(length(refopt))
@@ -196,6 +202,7 @@ function add(str) {
       if(match(words[w],"^%N$")) { refissue=wtail() }
       if(match(words[w],"^%D$")) { refdate=wtail() }
       if(match(words[w],"^%O$")) { refopt=wtail() }
+      if(match(words[w],"^%R$")) { refreport=wtail() }
     } else if(match(words[w],"^Nm$")) {
       if(synopsis) {
        add(".br")
This page took 0.033793 seconds and 4 git commands to generate.