Skip to content
Snippets Groups Projects
Commit 0752a907 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Added sup, sub and hr.

Rev: tutorial/Wmml.pmod:1.43
parent 7c4d6223
No related branches found
No related tags found
No related merge requests found
...@@ -93,6 +93,9 @@ static private int verify_any(SGML data, ...@@ -93,6 +93,9 @@ static private int verify_any(SGML data,
case "illustration": case "illustration":
case "link": case "link":
case "sup":
case "sub":
case "add_appendix": case "add_appendix":
case "exercises": case "exercises":
...@@ -160,6 +163,7 @@ static private int verify_any(SGML data, ...@@ -160,6 +163,7 @@ static private int verify_any(SGML data,
case "li": case "li":
case "ref": case "ref":
case "br": case "br":
case "hr":
case "img": case "img":
case "table-of-contents": case "table-of-contents":
...@@ -936,6 +940,9 @@ SGML low_make_concrete_wmml(SGML data) ...@@ -936,6 +940,9 @@ SGML low_make_concrete_wmml(SGML data)
low_make_concrete_wmml(tag->data), low_make_concrete_wmml(tag->data),
tag->file)}); tag->file)});
} }
else if(!tag) {
werror("Warning: NUL encountered in contents.\n");
}
else else
throw(({"Tag or contents has illegal type: "+sprintf("%O\n",tag), throw(({"Tag or contents has illegal type: "+sprintf("%O\n",tag),
backtrace()})); backtrace()}));
...@@ -1103,7 +1110,7 @@ array execute_contents(Tag tag) ...@@ -1103,7 +1110,7 @@ array execute_contents(Tag tag)
mixed err=catch mixed err=catch
{ {
object po; object po;
po=compile_string("#10000 \"static stuff\"\n" po=compile_string(sprintf("#%d %O\n\n", __LINE__, __FILE__) +
"array _res=({({})});\n" "array _res=({({})});\n"
"void write(mixed ...args) { _res[0]+=args; }\n" "void write(mixed ...args) { _res[0]+=args; }\n"
"\n" "\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment