tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
* [patch] small typo fixes
@ 2010-06-01 14:24 Ulrich Spörlein
  2010-06-01 15:04 ` Kristaps Dzonsons
  0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Spörlein @ 2010-06-01 14:24 UTC (permalink / raw)
  To: tech

[-- Attachment #1: Type: text/plain, Size: 322 bytes --]

Hi,

some typos in the error messages I noted, please see attached patch.

Also, the error "section not in conventional manual section" is hard to
understand at first (and I though there was an error at first). But I'm
not sure how we can better explain that "section" refers to .Sh and
"manual section" to [1-9] ...

Uli

[-- Attachment #2: typos.diff --]
[-- Type: text/x-diff, Size: 1623 bytes --]

diff --git a/main.c b/main.c
index af2e98a..b48e882 100644
--- a/main.c
+++ b/main.c
@@ -97,7 +97,7 @@ struct	curparse {
 static	const char * const	mandocerrs[MANDOCERR_MAX] = {
 	"ok",
 	"text should be uppercase",
-	"sections out of conentional order",
+	"sections out of conventional order",
 	"section name repeats",
 	"out of order prologue",
 	"repeated prologue entry",
@@ -111,7 +111,7 @@ static	const char * const	mandocerrs[MANDOCERR_MAX] = {
 	"superfluous width argument",
 	"bad date argument",
 	"bad width argument",
-	"unknown manual sction",
+	"unknown manual section",
 	"section not in conventional manual section",
 	"end of line whitespace",
 	"scope open on exit",
diff --git a/mandoc.h b/mandoc.h
index f6203c5..2fc0807 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -26,7 +26,7 @@ __BEGIN_DECLS
 enum	mandocerr {
 	MANDOCERR_OK,
 	MANDOCERR_UPPERCASE, /* text should be uppercase */
-	MANDOCERR_SECOOO, /* sections out of conentional order */
+	MANDOCERR_SECOOO, /* sections out of conventional order */
 	MANDOCERR_SECREP, /* section name repeats */
 	MANDOCERR_PROLOGOOO, /* out of order prologue */
 	MANDOCERR_PROLOGREP, /* repeated prologue entry */
@@ -40,7 +40,7 @@ enum	mandocerr {
 	MANDOCERR_WIDTHARG, /* superfluous width argument */
 	MANDOCERR_BADDATE, /* bad date argument */
 	MANDOCERR_BADWIDTH, /* bad width argument */
-	MANDOCERR_BADMSEC, /* unknown manual sction */
+	MANDOCERR_BADMSEC, /* unknown manual section */
 	MANDOCERR_SECMSEC, /* section not in conventional manual section */
 	MANDOCERR_EOLNSPACE, /* end of line whitespace */
 	MANDOCERR_SCOPEEXIT, /* scope open on exit */

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] small typo fixes
  2010-06-01 14:24 [patch] small typo fixes Ulrich Spörlein
@ 2010-06-01 15:04 ` Kristaps Dzonsons
  0 siblings, 0 replies; 2+ messages in thread
From: Kristaps Dzonsons @ 2010-06-01 15:04 UTC (permalink / raw)
  To: tech

> some typos in the error messages I noted, please see attached patch.
> 
> Also, the error "section not in conventional manual section" is hard to
> understand at first (and I though there was an error at first). But I'm
> not sure how we can better explain that "section" refers to .Sh and
> "manual section" to [1-9] ...

Ulrich,

This had to be manually applied due to changes in CVS to these files.
If only there were a way of you getting ahold of CVS files outright to
check patches... ;-)

Thanks,

Kristaps
--
 To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-06-01 14:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-01 14:24 [patch] small typo fixes Ulrich Spörlein
2010-06-01 15:04 ` Kristaps Dzonsons

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