[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: [BUG REPORT] WML 2.0.4, Debian Woody



On Thu, Sep 21, 2000 at 10:11:54AM +0200, wilhelmi@ira.uka.de wrote:

> Problem Description:
> | Try to process the following file with wml_p2_mp4h:
> | 
> | 
> | <if / a b>
> | 
> | 
> | The Problem seems to be the / in the end of the tested 
> | string. So <if a / b> works fine. Even <if /a b c>, but
> | not <if a/ b c>.

Let me know if the patch below fixes this bug.

--- wml_backend/p2_mp4h/src/builtin.c	2000/08/29 20:00:00	1.52
+++ wml_backend/p2_mp4h/src/builtin.c	2000/09/21 16:15:42
@@ -1478,7 +1478,7 @@
 
   obstack_grow (obs, "<when ", 6);
   obstack_grow (obs, ARG (1), strlen (ARG (1)));
-  obstack_1grow (obs, '>');
+  obstack_grow (obs, " >", 2);
   obstack_grow (obs, ARG (2), strlen (ARG (2)));
   obstack_grow (obs, "</when>", 7);
   if (argc>3)
@@ -1585,11 +1585,11 @@
 
       obstack_grow (obs, "<when ", 6);
       dump_args (obs, argc, argv, " ");
-      obstack_1grow (obs, '>');
+      obstack_grow (obs, " >", 2);
       obstack_grow (obs, ARGBODY, strlen (ARGBODY));
       obstack_grow (obs, "<while ", 7);
       dump_args (obs, argc, argv, " ");
-      obstack_1grow (obs, '>');
+      obstack_grow (obs, " >", 2);
       obstack_grow (obs, ARGBODY, strlen (ARGBODY));
       obstack_grow (obs, "</while>", 8);
       obstack_grow (obs, "</when>", 7);
@@ -2418,7 +2418,7 @@
   obstack_grow (obs, ARG (1), strlen (ARG (1)));
   if (verbatim && strcmp (verbatim, "true") == 0)
     obstack_grow (obs, " verbatim=true", 14);
-  obstack_1grow (obs, '>');
+  obstack_grow (obs, " >", 2);
   if (alt)
     obstack_grow (obs, alt, strlen (alt));
   obstack_grow (obs, "</__include>", 12);

-- 
Denis Barbier
WML Maintainer
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com