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

Re: [ANNOUNCE] WML 1.99.8



  Hi,

From: Denis Barbier <barbier@imacs.polytechnique.fr>
Subject: Re: [ANNOUNCE] WML 1.99.8
Date: Wed, 19 Apr 2000 10:06:20 +0200 (CET)
Message-ID: <Pine.LNX.3.96.1000419100209.1015B-100000@imacs.polytechnique.fr>

> > I prefer to write
> >    <command "ls dir/">
> Yes, but i did not know how to implement it.
> You may try the proposed solution by downloading
> http://www.engelschall.com/sw/wml/distrib/wml-SNAP/wml_backend/p2_mp4h/src/macro.c

  Sorry too late.
I see you have great difficulty.
And I think <command ls dir/ > is enough natural.

  Anyway, I could make out the patch,
which is so unsightly that I don't like.
Moreover it may have some bugs.
I'm all right even if you don't use it.

Regards,
-- Nobuyuki Tsuchimura


--- macro.c.orig	Wed Apr 19 13:00:39 2000
+++ macro.c	Sun Apr 23 22:16:30 2000
@@ -138,3 +138,3 @@
   char *text;
-  token_type t;
+  token_type t, last_t = TOKEN_SPACE;
   token_data td;
@@ -172,3 +172,3 @@
                 }
-              return (boolean) (IS_SPACE(*TOKEN_DATA_TEXT (&td)));
+              return (boolean) (IS_SPACE(*TOKEN_DATA_TEXT (&td)) | (last_t==TOKEN_QUOTE)<<1);
             }
@@ -231,2 +231,3 @@
 
+      last_t = t;
       t = next_token (&td, expansion);
@@ -279,3 +280,3 @@
         }
-      while (more_args);
+      while (more_args & 1);
       
@@ -289,2 +290,3 @@
         }
+      if (more_args & 2) spaced = TRUE;
     }
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com