From 80d9c13188e3a9c3a6f51f1349c13c52b8bf74a0 Mon Sep 17 00:00:00 2001 From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org> Date: Fri, 2 Jul 1999 16:06:21 +0200 Subject: [PATCH] more tolerant data_description maker Rev: tutorial/html.pike:1.25 --- tutorial/html.pike | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tutorial/html.pike b/tutorial/html.pike index 0c1367964b..04b497c514 100644 --- a/tutorial/html.pike +++ b/tutorial/html.pike @@ -358,6 +358,14 @@ SGML preify(SGML in,int id) SGML data_description(mapping arg,int pos,array(object) data, object orig) { + if (!data) + { + werror("Warning: empty data_description" + " (near "+Sgml.Tag("data_description",([]),pos)->location()+ + ")\n"); + return ({}); + } + array d=({}); // ({ type, name, value, pos, desc }) // or ({ ?, 0, 0, pos, group description }) @@ -1059,7 +1067,7 @@ void output(string base, WMML data) html_index=index_to_wmml(index); index=0; - foreach(indices(sections),string file) + foreach(sort(indices(sections)),string file) { string filename=mkfilename(file); werror("Anchoring "); -- GitLab