From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Remove check for tab.
Date: Sun, 4 Sep 2011 05:58:40 -0400 (EDT) [thread overview]
Message-ID: <201109040958.p849wecp030801@krisdoz.my.domain> (raw)
Log Message:
-----------
Remove check for tab. man(7) says tab is Ok.
Modified Files:
--------------
mdocml:
man_validate.c
Revision Data
-------------
Index: man_validate.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man_validate.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -Lman_validate.c -Lman_validate.c -u -p -r1.73 -r1.74
--- man_validate.c
+++ man_validate.c
@@ -52,7 +52,6 @@ static int check_le5(CHKARGS);
static int check_par(CHKARGS);
static int check_part(CHKARGS);
static int check_root(CHKARGS);
-static void check_text(CHKARGS);
static int post_AT(CHKARGS);
static int post_vs(CHKARGS);
@@ -153,11 +152,10 @@ man_valid_post(struct man *m)
m->last->flags |= MAN_VALID;
switch (m->last->type) {
- case (MAN_TEXT):
- check_text(m, m->last);
- return(1);
case (MAN_ROOT):
return(check_root(m, m->last));
+ case (MAN_TEXT):
+ /* FALLTHROUGH */
case (MAN_EQN):
/* FALLTHROUGH */
case (MAN_TBL):
@@ -206,19 +204,6 @@ check_root(CHKARGS)
}
return(1);
-}
-
-static void
-check_text(CHKARGS)
-{
- char *cp, *p;
-
- cp = p = n->string;
- for (cp = p; NULL != (p = strchr(p, '\t')); p++) {
- if (MAN_LITERAL & m->flags)
- continue;
- man_pmsg(m, n->line, (int)(p - cp), MANDOCERR_BADTAB);
- }
}
#define INEQ_DEFINE(x, ineq, name) \
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
reply other threads:[~2011-09-04 9:58 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=201109040958.p849wecp030801@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).