diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-05-14 19:52:44 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-05-14 19:52:44 +0000 |
commit | 3cce8de3c5ac3b5f6a69a551cd7f542ea28ce781 (patch) | |
tree | ccf8b10982fe7aeb28b4829db92824206e362dc1 /usr.bin/mandoc/term.h | |
parent | 91f46c931780d7b547ff88e7f5860d322a57cfca (diff) |
Integrate kristaps@' end-of-sentence (EOS) framework
which is simpler and more powerful than mine, and remove mine.
* man(7) now has EOS handling, too
* put EOS detection into its own function in libmandoc
* use node and termp flags to communicate the EOS condition
* no more EOS pseudo-macro
* no more non-printable EOS marker character on the formatter level
This slightly breaks EOS detection after trailing punctuation
in mdoc(7) macros, but that will be restored soon.
Diffstat (limited to 'usr.bin/mandoc/term.h')
-rw-r--r-- | usr.bin/mandoc/term.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/term.h b/usr.bin/mandoc/term.h index f9eff2c0b6b..e497fba1512 100644 --- a/usr.bin/mandoc/term.h +++ b/usr.bin/mandoc/term.h @@ -1,4 +1,4 @@ -/* $Id: term.h,v 1.17 2010/05/14 14:47:44 schwarze Exp $ */ +/* $Id: term.h,v 1.18 2010/05/14 19:52:43 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -41,6 +41,7 @@ struct termp { size_t viscol; /* Chars on current line. */ int overstep; /* See termp_flushln(). */ int flags; +#define TERMP_SENTENCE (1 << 1) /* Space before a sentence. */ #define TERMP_NOSPACE (1 << 2) /* No space before words. */ #define TERMP_NOLPAD (1 << 3) /* See term_flushln(). */ #define TERMP_NOBREAK (1 << 4) /* See term_flushln(). */ |