version 1.2, 2019/03/18 21:55:04 |
version 1.3, 2019/03/20 07:13:02 |
|
|
|
|
style_set(&sy, base); |
style_set(&sy, base); |
TAILQ_INIT(&frs); |
TAILQ_INIT(&frs); |
|
log_debug("%s: %s", __func__, expanded); |
|
|
/* |
/* |
* We build three screens for left, right, centre alignment, one for |
* We build three screens for left, right, centre alignment, one for |
|
|
|
|
/* This is a style. Work out where the end is and parse it. */ |
/* This is a style. Work out where the end is and parse it. */ |
end = format_skip(cp + 2, "]"); |
end = format_skip(cp + 2, "]"); |
if (end == NULL) |
if (end == NULL) { |
|
log_debug("no terminating ] at '%s'", cp + 2); |
return; |
return; |
|
} |
tmp = xstrndup(cp + 2, end - (cp + 2)); |
tmp = xstrndup(cp + 2, end - (cp + 2)); |
if (style_parse(&sy, base, tmp) != 0) { |
if (style_parse(&sy, base, tmp) != 0) { |
|
log_debug("invalid style '%s'", tmp); |
free(tmp); |
free(tmp); |
return; |
return; |
} |
} |