/[LeafOK_CVS]/lbbs/src/lml.c
ViewVC logotype

Diff of /lbbs/src/lml.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 by sysadm, Tue Jun 3 02:30:18 2025 UTC Revision 1.7 by sysadm, Sat Jun 14 02:59:34 2025 UTC
# Line 75  static int lml_tag_quote_level = 0; Line 75  static int lml_tag_quote_level = 0;
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)
# Line 100  static int lml_tag_quote_filter(const ch Line 99  static int lml_tag_quote_filter(const ch
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},


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1