From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id s33Bt12F027274 for ; Thu, 3 Apr 2014 07:55:01 -0400 (EDT) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id s33Bt1O5009845; Thu, 3 Apr 2014 07:55:01 -0400 (EDT) Date: Thu, 3 Apr 2014 07:55:01 -0400 (EDT) Message-Id: <201404031155.s33Bt1O5009845@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: pod2mdoc: Tweak for version: time to put this to rest for a bit. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Tweak for version: time to put this to rest for a bit. Modified Files: -------------- pod2mdoc: Makefile index.xml pod2mdoc.1 pod2mdoc.c Revision Data ------------- Index: pod2mdoc.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/pod2mdoc/pod2mdoc.c,v retrieving revision 1.20 retrieving revision 1.21 diff -Lpod2mdoc.c -Lpod2mdoc.c -u -p -r1.20 -r1.21 --- pod2mdoc.c +++ pod2mdoc.c @@ -179,7 +179,8 @@ formatescape(const char *buf, size_t *st static int trylink(const char *buf, size_t *start, size_t end, size_t dsz) { - size_t linkstart, realend, linkend, i, j, textsz; + size_t linkstart, realend, linkend, + i, j, textsz, stack; const char *text; /* @@ -187,6 +188,7 @@ trylink(const char *buf, size_t *start, * This function is more or less replicated in the formatcode() * for null or index formatting codes. */ + stack = 0; for (linkstart = realend = *start; realend < end; realend++) { if ('>' != buf[realend]) continue; Index: pod2mdoc.1 =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/pod2mdoc/pod2mdoc.1,v retrieving revision 1.10 retrieving revision 1.11 diff -Lpod2mdoc.1 -Lpod2mdoc.1 -u -p -r1.10 -r1.11 --- pod2mdoc.1 +++ pod2mdoc.1 @@ -235,7 +235,7 @@ was written by By way of being a presentational language, POD is not well-represented by .Xr mdoc 7 . -Semantic content will be necessarily lost. +Semantic content must be inferred and may be wrong. .Pp .Nm only supports the named @@ -256,3 +256,6 @@ escape is discarded. Unless solely a section link, the text and section parts of .Li L are discarded. +Moreover, nested format codes, e.g. +.Li L|bar> , +are not supported. Index: index.xml =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/pod2mdoc/index.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -Lindex.xml -Lindex.xml -u -p -r1.2 -r1.3 --- index.xml +++ index.xml @@ -49,7 +49,7 @@
By way of being a presentational language, POD is not well-represented by mdoc(7). - Semantic content will be necessarily lost. + Semantic content must be inferred and may be wrong.

Contact Kristaps with questions, but please make sure any formatting issue @@ -59,7 +59,9 @@ New in version @VERSION@...

- More smarts in converting SYNOPSIS sections into useful mdoc(7). + Render the NAME and SYNOPSIS sections intelligently into mdoc(7). + Also properly format the L<> escape with the proper macros. + All of these are documented in the Smarts section of the manual.