From b8de0a3909c93946696d3495221e1d8292a7bf9b Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Fri, 2 Feb 2007 08:54:44 +0000 Subject: [PATCH] Implemented [code1] ELCode tag SVN revision: 1785 --- resources/elcode_english.html | 8 +++++- src/elogd.c | 54 +++++++++++++++++++++++++++++------ 2 files changed, 53 insertions(+), 9 deletions(-) diff --git a/resources/elcode_english.html b/resources/elcode_english.html index ee708d50..d36a0710 100755 --- a/resources/elcode_english.html +++ b/resources/elcode_english.html @@ -125,7 +125,7 @@ small graphical images, such as

:] :O 8-)8o + 8o X( :P

@@ -185,6 +185,12 @@ Grapefruits 2.50 100
Sun-dried Tomatos 12.50 20

+Note that all other ELCode tags are disabled inside the [code] tags. This +might be helpful to display some program code or similar which contains characters +which would wrongly be interpreted as tags or smileys. If this behaviour is not +wanted, like if some program code should be annotated with bold face etc. the +tags [code1]...[/code1] can be used which allows other ELCode +tags inside.

Lists

diff --git a/src/elogd.c b/src/elogd.c index fcb2fbff..00043bca 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -5667,6 +5667,10 @@ PATTERN_LIST pattern_list[] = { {"[code]", "
"},
    {"[/code]\r\n", "
"}, {"[/code]", ""}, + {"\r\n[code1]", "
"},
+   {"[code1]", "
"},
+   {"[/code1]\r\n", "
"}, + {"[/code1]", "
"}, /* lists */ {"[list]\r", "