[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: Disappearance of a quoted body
- From: Denis Barbier <nospam@thanx>
- Date: Tue, 20 Feb 2001 00:38:44 +0100
On Mon, Feb 19, 2001 at 05:35:10PM +0100, Petr Andreyev wrote:
> Hello Collegues!
>
> We have found the following interesting behavior of mp4h:
>
> ====== code =======
> <define-tag bodytest endtag=required>
> ::::::
> %body
> ::::::
> </define-tag>
> <bodytest>"Magic body"</bodytest>
>
> ===== output ======
> ::::::
> ::::::
> ===================
>
> That is to say that the body dissappears. When you add a space or a newline to
> the left or to the right of the quoted string everything works as expected.
>
> How would you explain this, and is this an assumed behavior?
Hi again Petr,
there is indeed a bug in wml_backend/p2_mp4h, the attached file should
fix it.
Thanks for your report.
--
Denis Barbier
WML Maintainer
Index: src/devel.c
===================================================================
RCS file: /home/barbier/cvslocal/mp4h/src/devel.c,v
retrieving revision 1.1
diff -u -u -r1.1 devel.c
--- src/devel.c 2000/07/13 15:18:40 1.1
+++ src/devel.c 2001/02/19 23:27:32
@@ -161,9 +161,7 @@
obstack_1grow (obs, CHAR_BGROUP);
/* Remove surrounding double quotes */
if (*ARG (i) == '"' && LAST_CHAR (ARG (i)) == '"')
- obstack_grow (obs, ARG (i) + 1, strlen (ARG (i) - 2));
- else if (*ARG (i) == CHAR_QUOTE && LAST_CHAR (ARG (i)) == CHAR_QUOTE)
- obstack_grow (obs, ARG (i) + 1, strlen (ARG (i) - 2));
+ obstack_grow (obs, ARG (i) + 1, strlen (ARG (i)) - 2);
else
obstack_grow (obs, ARG (i), strlen (ARG (i)));