diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-11 12:07:49 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-11 12:07:49 +0000 |
commit | 4d04de4d66adf8f2caa056966da460e722fdd6d3 (patch) | |
tree | d32d44420aa153f2987379a959d24e06df9c440d /man_term.c | |
parent | 7f83f64018902ad39b94705868df283386db95fa (diff) | |
download | mandoc-4d04de4d66adf8f2caa056966da460e722fdd6d3.tar.gz mandoc-4d04de4d66adf8f2caa056966da460e722fdd6d3.tar.zst mandoc-4d04de4d66adf8f2caa056966da460e722fdd6d3.zip |
Documented some un-clear parts of main.c.
Fixed footer to be new-groff style (OS DATE OS).
Removed sanity check from mdoc_term (unnecessary).
Diffstat (limited to 'man_term.c')
-rw-r--r-- | man_term.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.10 2009/06/11 07:26:35 kristaps Exp $ */ +/* $Id: man_term.c,v 1.11 2009/06/11 12:07:49 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -292,7 +292,9 @@ pre_IP(DECL_ARGS) offs = strlen(nn->string); p->flags |= TERMP_NOSPACE; - p->offset += offs; + /* FIXME */ + if ((p->offset += offs) > p->rmargin) + errx(1, "line too long"); return(0); } |