source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: pod2mdoc: Tweak for version: time to put this to rest for a bit.
Date: Thu, 3 Apr 2014 07:55:01 -0400 (EDT)	[thread overview]
Message-ID: <201404031155.s33Bt1O5009845@krisdoz.my.domain> (raw)

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<text|link/section>
 are discarded.
+Moreover, nested format codes, e.g.
+.Li L<B<foo>|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 @@
 			<blockquote>
 				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.
 			</blockquote>
 			<p>
 				Contact <a href="http://kristaps.bsd.lv">Kristaps</a> with questions, but please make sure any formatting issue
@@ -59,7 +59,9 @@
 				New in version @VERSION@...
 			</h2>
 			<p>
-				More smarts in converting SYNOPSIS sections into useful mdoc(7).
+				Render the NAME and SYNOPSIS sections intelligently into mdoc(7).
+				Also properly format the <code>L&lt;&gt;</code> escape with the proper macros.
+				All of these are documented in the <a href="pod2mdoc.1.html#x536d61727473">Smarts</a> section of the manual.
 			</p>
 		</article>
 		<footer>
Index: Makefile
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/pod2mdoc/Makefile,v
retrieving revision 1.7
retrieving revision 1.8
diff -LMakefile -LMakefile -u -p -r1.7 -r1.8
--- Makefile
+++ Makefile
@@ -1,4 +1,4 @@
-VERSION = 0.0.9
+VERSION = 0.0.10
 CFLAGS += -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings 
 WWWPREFIX = /usr/vhosts/mdocml.bsd.lv/www/htdocs/pod2mdoc
 
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

                 reply	other threads:[~2014-04-03 11:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201404031155.s33Bt1O5009845@krisdoz.my.domain \
    --to=kristaps@mdocml.bsd.lv \
    --cc=source@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).