version 1.130, 2011/03/22 10:13:01 |
version 1.131, 2011/03/22 14:05:45 |
Line 508 print_doctype(struct html *h) |
|
Line 508 print_doctype(struct html *h) |
|
name, doctype, dtd); |
name, doctype, dtd); |
} |
} |
|
|
|
|
void |
void |
print_text(struct html *h, const char *word) |
print_text(struct html *h, const char *word) |
{ |
{ |
|
|
if (DELIM_CLOSE == mandoc_isdelim(word)) |
|
if ( ! (HTML_IGNDELIM & h->flags)) |
|
h->flags |= HTML_NOSPACE; |
|
|
|
if ( ! (HTML_NOSPACE & h->flags)) { |
if ( ! (HTML_NOSPACE & h->flags)) { |
/* Manage keeps! */ |
/* Manage keeps! */ |
if ( ! (HTML_KEEP & h->flags)) { |
if ( ! (HTML_KEEP & h->flags)) { |
Line 544 print_text(struct html *h, const char *word) |
|
Line 539 print_text(struct html *h, const char *word) |
|
} |
} |
|
|
h->flags &= ~HTML_IGNDELIM; |
h->flags &= ~HTML_IGNDELIM; |
|
|
if (DELIM_OPEN == mandoc_isdelim(word)) |
|
h->flags |= HTML_NOSPACE; |
|
} |
} |
|
|
|
|