source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: warn about missing one-line description; missing feature found
@ 2017-01-27 11:33 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-01-27 11:33 UTC (permalink / raw)
  To: source

Log Message:
-----------
warn about missing one-line description;
missing feature found in the TODO file

Modified Files:
--------------
    mdocml:
        mandocdb.c

Revision Data
-------------
Index: mandocdb.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mandocdb.c,v
retrieving revision 1.241
retrieving revision 1.242
diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.241 -r1.242
--- mandocdb.c
+++ mandocdb.c
@@ -1231,8 +1231,12 @@ mpages_merge(struct dba *dba, struct mpa
 			parse_mdoc(mpage, &man->meta, man->first);
 		else
 			parse_man(mpage, &man->meta, man->first);
-		if (mpage->desc == NULL)
-			mpage->desc = mandoc_strdup(mpage->mlinks->name);
+		if (mpage->desc == NULL) {
+			mpage->desc = mandoc_strdup(mlink->name);
+			if (warnings)
+				say(mlink->file, "No one-line description, "
+				    "using filename \"%s\"", mlink->name);
+		}
 
 		for (mlink = mpage->mlinks;
 		     mlink != NULL;
@@ -1360,7 +1364,8 @@ parse_cat(struct mpage *mpage, int fd)
 			/* Skip to next word. */ ;
 	} else {
 		if (warnings)
-			say(mlink->file, "No dash in title line");
+			say(mlink->file, "No dash in title line, "
+			    "reusing \"%s\" as one-line description", title);
 		p = title;
 	}
 
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-01-27 11:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-27 11:33 mdocml: warn about missing one-line description; missing feature found schwarze

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).