| 75 |
|
|
| 76 |
static int lml_tag_quote_filter(const char *tag_name, const char *tag_param_buf, char *tag_output_buf, size_t tag_output_buf_len) |
static int lml_tag_quote_filter(const char *tag_name, const char *tag_param_buf, char *tag_output_buf, size_t tag_output_buf_len) |
| 77 |
{ |
{ |
|
|
|
| 78 |
if (strcasecmp(tag_name, "quote") == 0) |
if (strcasecmp(tag_name, "quote") == 0) |
| 79 |
{ |
{ |
| 80 |
if (lml_tag_quote_level <= LML_TAG_QUOTE_MAX_LEVEL) |
if (lml_tag_quote_level <= LML_TAG_QUOTE_MAX_LEVEL) |
| 99 |
const static char *LML_tag_def[][3] = { |
const static char *LML_tag_def[][3] = { |
| 100 |
{"left", "[", ""}, |
{"left", "[", ""}, |
| 101 |
{"right", "]", NULL}, |
{"right", "]", NULL}, |
| 102 |
{"bold", "\033[1m", ""}, |
{"bold", "\033[1m", ""}, // does not work in Fterm |
| 103 |
{"/bold", "\033[22m", NULL}, |
{"/bold", "\033[22m", NULL}, |
| 104 |
{"b", "\033[1m", ""}, |
{"b", "\033[1m", ""}, |
| 105 |
{"/b", "\033[22m", NULL}, |
{"/b", "\033[22m", NULL}, |
| 106 |
{"italic", "\033[5m", ""}, // use blink instead |
{"italic", "\033[5m", ""}, // use blink instead |
| 107 |
{"/italic", "\033[25m", NULL}, |
{"/italic", "\033[m", NULL}, // \033[25m does not work in Fterm |
| 108 |
{"i", "\033[5m", ""}, |
{"i", "\033[5m", ""}, |
| 109 |
{"/i", "\033[25m", NULL}, |
{"/i", "\033[m", NULL}, |
| 110 |
{"underline", "\033[4m", ""}, |
{"underline", "\033[4m", ""}, |
| 111 |
{"/underline", "\033[24m", NULL}, |
{"/underline", "\033[m", NULL}, // \033[24m does not work in Fterm |
| 112 |
{"u", "\033[4m", ""}, |
{"u", "\033[4m", ""}, |
| 113 |
{"/u", "\033[24m", NULL}, |
{"/u", "\033[m", NULL}, |
| 114 |
{"color", NULL, (const char *)lml_tag_color_filter}, |
{"color", NULL, (const char *)lml_tag_color_filter}, |
| 115 |
{"/color", "\033[m", NULL}, |
{"/color", "\033[m", NULL}, |
| 116 |
{"quote", NULL, (const char *)lml_tag_quote_filter}, |
{"quote", NULL, (const char *)lml_tag_quote_filter}, |