* mdocml: Notes: this must be done later.
@ 2010-06-28 14:39 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2010-06-28 14:39 UTC (permalink / raw)
To: source
Log Message:
-----------
Notes: this must be done later. \b in the input will cause havoc.
Modified Files:
--------------
mdocml:
mdoc_validate.c
man_validate.c
Revision Data
-------------
Index: mdoc_validate.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_validate.c,v
retrieving revision 1.101
retrieving revision 1.102
diff -Lmdoc_validate.c -Lmdoc_validate.c -u -p -r1.101 -r1.102
--- mdoc_validate.c
+++ mdoc_validate.c
@@ -458,6 +458,11 @@ check_text(struct mdoc *mdoc, int line,
{
int c;
+ /*
+ * FIXME: we absolutely cannot let \b get through or it will
+ * destroy some assumptions in terms of format.
+ */
+
for ( ; *p; p++, pos++) {
if ('\t' == *p) {
if ( ! (MDOC_LITERAL & mdoc->flags))
Index: man_validate.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man_validate.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -Lman_validate.c -Lman_validate.c -u -p -r1.44 -r1.45
--- man_validate.c
+++ man_validate.c
@@ -223,6 +223,11 @@ check_text(CHKARGS)
return(c);
}
+ /*
+ * FIXME: we absolutely cannot let \b get through or it
+ * will destroy some assumptions in terms of format.
+ */
+
if ('\t' == *p || isprint((u_char)*p) || ASCII_HYPH == *p)
continue;
if ( ! man_pmsg(m, n->line, pos, MANDOCERR_BADCHAR))
--
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-06-28 14:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-28 14:39 mdocml: Notes: this must be done later 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).