From 9a940a2e438cdb23764f88390c85b69d67b306b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Sun, 18 Jul 1999 00:11:40 -0700 Subject: [PATCH] bugfix Rev: tutorial/wmmltohtml2:1.14 --- tutorial/wmmltohtml2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tutorial/wmmltohtml2 b/tutorial/wmmltohtml2 index 13dff01e03..92f8aa5821 100755 --- a/tutorial/wmmltohtml2 +++ b/tutorial/wmmltohtml2 @@ -19,6 +19,7 @@ int main(int argc, string *argv) mixed *ER=catch { program output=(program)argv[2]; + Wmml->output_format=argv[2]; if (!output) error("can't cast %O to program\n",argv[2]); object out=output(); if (!out->output) error("%O doesn't have an output method",argv[2]); @@ -42,7 +43,7 @@ int main(int argc, string *argv) werror("Undocumented functions: \n%-#75s\n",(indices(all_constants()) - indices(wmml->index_data))*"\n"); #endif werror("\nWriting output\n"); - output()->output(argv[3],wmml); + out->output(argv[3],wmml); write("Ok\n"); exit(0); }; -- GitLab