Comment future fixes/additions
Note where Asciidoc features need to be supported that would prevent code sharing with other markup parsers.
This commit is contained in:
parent
dcac3e164c
commit
bd7b56a80f
@ -121,7 +121,8 @@ static int get_kind(char c)
|
|||||||
|
|
||||||
|
|
||||||
/* computes the length of an UTF-8 string
|
/* computes the length of an UTF-8 string
|
||||||
* if the string doesn't look like UTF-8, return -1 */
|
* if the string doesn't look like UTF-8, return -1
|
||||||
|
* FIXME consider East_Asian_Width Unicode property */
|
||||||
static int utf8_strlen(const char *buf, int buf_len)
|
static int utf8_strlen(const char *buf, int buf_len)
|
||||||
{
|
{
|
||||||
int len = 0;
|
int len = 0;
|
||||||
@ -166,7 +167,7 @@ static void findAsciidocTags (void)
|
|||||||
if (name_len < 0)
|
if (name_len < 0)
|
||||||
name_len = name_len_bytes;
|
name_len = name_len_bytes;
|
||||||
|
|
||||||
/* underlines must be +-2 chars */
|
/* underlines must be +-2 chars FIXME detect single line titles */
|
||||||
if (line_len >= name_len - 2 && line_len <= name_len + 2 && name_len > 0 &&
|
if (line_len >= name_len - 2 && line_len <= name_len + 2 && name_len > 0 &&
|
||||||
ispunct(line[0]) && issame((const char*) line))
|
ispunct(line[0]) && issame((const char*) line))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user