* mdocml: Smarten BADCHAR check to allow ASCII_HYPH.
@ 2010-05-25 12:44 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2010-05-25 12:44 UTC (permalink / raw)
To: source
Log Message:
-----------
Smarten BADCHAR check to allow ASCII_HYPH.
Fix index.sgml not to puke (the relevant section will be re-written for the release anyway, but I hate seeing errors).
Modified Files:
--------------
mdocml:
index.sgml
man_validate.c
mdoc_validate.c
Revision Data
-------------
Index: mdoc_validate.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_validate.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -Lmdoc_validate.c -Lmdoc_validate.c -u -p -r1.81 -r1.82
--- mdoc_validate.c
+++ mdoc_validate.c
@@ -463,7 +463,7 @@ check_text(struct mdoc *mdoc, int line,
if ( ! (MDOC_LITERAL & mdoc->flags))
if ( ! mdoc_pmsg(mdoc, line, pos, MANDOCERR_BADCHAR))
return(0);
- } else if ( ! isprint((u_char)*p))
+ } else if ( ! isprint((u_char)*p) && ASCII_HYPH != *p)
if ( ! mdoc_pmsg(mdoc, line, pos, MANDOCERR_BADCHAR))
return(0);
Index: index.sgml
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/index.sgml,v
retrieving revision 1.72
retrieving revision 1.73
diff -Lindex.sgml -Lindex.sgml -u -p -r1.72 -r1.73
--- index.sgml
+++ index.sgml
@@ -252,6 +252,7 @@
<TBODY>
<TR>
<TD VALIGN="top"><SPAN CLASS="date">xx-05-2010</SPAN></TD>
+ <TD VALIGN="top">
Day 1 of Rostock hackathon: proper handling of quotations in tab-separated
column lists, finished patching of SYNOPSIS breaking (1.9.25), fixed pre-comment
white-space stripping, added end-of-sentence spacing to black partial-implicit
Index: man_validate.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man_validate.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -Lman_validate.c -Lman_validate.c -u -p -r1.41 -r1.42
--- man_validate.c
+++ man_validate.c
@@ -223,7 +223,7 @@ check_text(CHKARGS)
return(c);
}
- if ('\t' == *p || isprint((u_char)*p))
+ if ('\t' == *p || isprint((u_char)*p) || ASCII_HYPH == *p)
continue;
if ( ! man_pmsg(m, n->line, pos, MANDOCERR_BADCHAR))
return(0);
--
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:[~2010-05-25 12:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-25 12:44 mdocml: Smarten BADCHAR check to allow ASCII_HYPH kristaps
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).