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

Re: bug in 1.7.0?



On Fri, 4 Jun 1999, John Bazik wrote:

> > Again, this is the normal behavior, and calls like
> >    <imgdot width=<get-var width>>
> > are hazardous.
> 
> Hazardous, perhaps, but very convenient.  I calculate the dimensions
> of various parts of the page using the mhtml arithmetic operators,
> so <get-var width> isn't just a constant I can replace.

I understand your point of view, but this a change in Meta-HTML i hadn't
noticed, and now i have to find solutions. I won't change the
preserve/restore stuff because if works fine and every wml include files
depend on this.

Well i believe the simplest is to patch Meta-HTML.

> I suppose I could assign the result of my calculations to an m4
> macro...
> 
> 	<symbol WIDTH <get-var width>>
> 
> ...and then use WIDTH, but that seems awkward, no?
> 
> Hmmm.

<set-var my_width=<... metahtml arithmetic ...>>
<imgdot width=<get-var my_width>>

Denis


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