| 118 |
case 'T': |
case 'T': |
| 119 |
moveto(24, 1); |
moveto(24, 1); |
| 120 |
clrtoeol(); |
clrtoeol(); |
| 121 |
len = get_data(24, 1, "标题: ", title_input, sizeof(title_input), TITLE_INPUT_MAX_LEN, DOECHO); |
len = get_data(24, 1, "标题: ", title_input, sizeof(title_input), TITLE_INPUT_MAX_LEN); |
| 122 |
for (p = title_input; *p == ' '; p++) |
for (p = title_input; *p == ' '; p++) |
| 123 |
; |
; |
| 124 |
for (q = title_input + len; q > p && *(q - 1) == ' '; q--) |
for (q = title_input + len; q > p && *(q - 1) == ' '; q--) |
| 837 |
} |
} |
| 838 |
|
|
| 839 |
// Apply LML render to content body |
// Apply LML render to content body |
| 840 |
len = lml_plain(row[1], content_f, ARTICLE_CONTENT_MAX_LEN, 0); |
len = lml_render(row[1], content_f, ARTICLE_CONTENT_MAX_LEN, 0); |
| 841 |
content_f[len] = '\0'; |
content_f[len] = '\0'; |
| 842 |
|
|
| 843 |
// Remove control sequence |
// Remove control sequence |
| 921 |
case 'T': |
case 'T': |
| 922 |
moveto(24, 1); |
moveto(24, 1); |
| 923 |
clrtoeol(); |
clrtoeol(); |
| 924 |
len = get_data(24, 1, "标题: ", title_input, sizeof(title_input), TITLE_INPUT_MAX_LEN, DOECHO); |
len = get_data(24, 1, "标题: ", title_input, sizeof(title_input), TITLE_INPUT_MAX_LEN); |
| 925 |
for (p = title_input; *p == ' '; p++) |
for (p = title_input; *p == ' '; p++) |
| 926 |
; |
; |
| 927 |
for (q = title_input + len; q > p && *(q - 1) == ' '; q--) |
for (q = title_input + len; q > p && *(q - 1) == ' '; q--) |