"},
{"[code]", ""},
+ {"[/code]\r\n", ""},
{"[/code]", ""},
/* lists */
@@ -6539,7 +6544,7 @@ void rsputs_elcode(LOGBOOK * lbs, const char *str)
for (l = 0; pattern_list[l].pattern[0]; l++) {
if (strnieq(str + i, pattern_list[l].pattern, strlen(pattern_list[l].pattern))) {
- if (stricmp(pattern_list[l].pattern, "[/code]") == 0)
+ if (stristr(pattern_list[l].pattern, "[/code]"))
interprete_elcode = TRUE;
if (interprete_elcode) {
@@ -6658,13 +6663,13 @@ void rsputs_elcode(LOGBOOK * lbs, const char *str)
}
} // interprete_elcode
- if (stricmp(pattern_list[l].pattern, "[code]") == 0)
+ if (stristr(pattern_list[l].pattern, "[code]"))
interprete_elcode = FALSE;
break;
}
}
- if ((interprete_elcode && pattern_list[l].pattern[0]) || stricmp(pattern_list[l].pattern, "[code]") == 0)
+ if ((interprete_elcode && pattern_list[l].pattern[0]) || stristr(pattern_list[l].pattern, "[code]"))
continue;
if (strnieq(str + i, "