* mdocml: merge rev 1.242: warn about missing one-line description
@ 2017-01-27 14:33 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-01-27 14:33 UTC (permalink / raw)
To: source
Log Message:
-----------
merge rev 1.242: warn about missing one-line description
Tags:
----
VERSION_1_13
Modified Files:
--------------
mdocml:
mandocdb.c
Revision Data
-------------
Index: mandocdb.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mandocdb.c,v
retrieving revision 1.220.2.10
retrieving revision 1.220.2.11
diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.220.2.10 -r1.220.2.11
--- mandocdb.c
+++ mandocdb.c
@@ -1270,6 +1270,12 @@ mpages_merge(struct mparse *mp)
parse_mdoc(mpage, &man->meta, man->first);
else
parse_man(mpage, &man->meta, man->first);
+ if (mpage->desc == NULL) {
+ mpage->desc = mandoc_strdup(mlink->name);
+ if (warnings)
+ say(mlink->file, "No one-line description, "
+ "using filename \"%s\"", mlink->name);
+ }
putkey(mpage, mpage->sec, TYPE_sec);
if (*mpage->arch != '\0')
@@ -1285,9 +1291,6 @@ mpages_merge(struct mparse *mp)
putkey(mpage, mlink->name, NAME_FILE);
}
- if (mpage->desc == NULL)
- mpage->desc = mandoc_strdup(mpage->mlinks->name);
-
if (warnings && !use_all)
for (mlink = mpage->mlinks; mlink;
mlink = mlink->next)
@@ -1449,7 +1452,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 14: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 14:33 mdocml: merge rev 1.242: warn about missing one-line description 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).