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

Re: Problem with ifeq under 2.0.0

On Wed, 17 May 2000, Denis Barbier wrote:

> read the file README.mp4h in top-level directory, it describes what to
> do with this expression (and why it is broken now):
>       <ifeq 0 0 <img src="foo.png" alt="">>

But there is still a strange effect in combination with

Take this example:

#include wml::std::href
<ifeq 0 0 "<href url=\"foo.html\">" "<href url=\"bar.html\">">

This results in
   <a href=""foo.html""><tt>"foo.html"</tt></a>
(note the superfluous quotes).

In contrast to this, the following seems to be okay:

#include wml::std::href
<ifeq 0 0 "<href url="foo.html">" "<href url="bar.html">">

and also 

#include wml::std::href
<ifeq 0 0 "<href url=foo.html>" "<href url=bar.html>">

Both create the expected output:

   <a href="foo.html"><tt>foo.html</tt></a>

But why does it work this way?  This isn't what I expected after
reading README.mp4h and the manpage of wml::std::href...



 * roland@spinnaker.de * http://www.spinnaker.de/ *
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com