version 1.180, 2011/03/17 09:16:38 |
version 1.183, 2011/04/04 21:14:12 |
|
|
#include <string.h> |
#include <string.h> |
|
|
#include "mandoc.h" |
#include "mandoc.h" |
#include "chars.h" |
|
#include "out.h" |
#include "out.h" |
#include "term.h" |
#include "term.h" |
#include "main.h" |
#include "main.h" |
Line 457 term_fontpop(struct termp *p) |
|
Line 456 term_fontpop(struct termp *p) |
|
void |
void |
term_word(struct termp *p, const char *word) |
term_word(struct termp *p, const char *word) |
{ |
{ |
const char *sv, *seq; |
const char *seq; |
size_t ssz; |
size_t ssz; |
enum roffdeco deco; |
enum roffdeco deco; |
|
|
sv = word; |
|
|
|
if (DELIM_CLOSE == mandoc_isdelim(word)) |
|
if ( ! (TERMP_IGNDELIM & p->flags)) |
|
p->flags |= TERMP_NOSPACE; |
|
|
|
if ( ! (TERMP_NOSPACE & p->flags)) { |
if ( ! (TERMP_NOSPACE & p->flags)) { |
if ( ! (TERMP_KEEP & p->flags)) { |
if ( ! (TERMP_KEEP & p->flags)) { |
if (TERMP_PREKEEP & p->flags) |
if (TERMP_PREKEEP & p->flags) |
Line 527 term_word(struct termp *p, const char *word) |
|
Line 520 term_word(struct termp *p, const char *word) |
|
if (DECO_NOSPACE == deco && '\0' == *word) |
if (DECO_NOSPACE == deco && '\0' == *word) |
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
} |
} |
|
|
if (DELIM_OPEN == mandoc_isdelim(sv)) |
|
p->flags |= TERMP_NOSPACE; |
|
} |
} |
|
|
|
|