version 1.383, 2020/04/06 10:16:17 |
version 1.385, 2020/04/18 20:40:10 |
|
|
#include "mandoc.h" |
#include "mandoc.h" |
#include "mandoc_xr.h" |
#include "mandoc_xr.h" |
#include "roff.h" |
#include "roff.h" |
#include "tag.h" |
|
#include "mdoc.h" |
#include "mdoc.h" |
#include "libmandoc.h" |
#include "libmandoc.h" |
#include "roff_int.h" |
#include "roff_int.h" |
#include "libmdoc.h" |
#include "libmdoc.h" |
|
#include "tag.h" |
|
|
/* FIXME: .Bl -diag can't have non-text children in HEAD. */ |
/* FIXME: .Bl -diag can't have non-text children in HEAD. */ |
|
|
Line 2212 post_hyph(POST_ARGS) |
|
Line 2212 post_hyph(POST_ARGS) |
|
if (*cp == '-' && |
if (*cp == '-' && |
isalpha((unsigned char)cp[-1]) && |
isalpha((unsigned char)cp[-1]) && |
isalpha((unsigned char)cp[1])) { |
isalpha((unsigned char)cp[1])) { |
if (n->string == NULL && n->flags & NODE_ID) |
if (n->tag == NULL && n->flags & NODE_ID) |
n->string = mandoc_strdup(nch->string); |
n->tag = mandoc_strdup(nch->string); |
*cp = ASCII_HYPH; |
*cp = ASCII_HYPH; |
} |
} |
} |
} |