mhonarc-users

DEFINEVAR oddity

1998-06-15 21:25:57

I've been fighting with this one for a bit nad can't seem to find a
solution.  My RC file reads in part:

--<cut>--
<DefineVar>
LISTNAME
ICGnu
</DefineVar>

<IdxPgBegin>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
...etc...
      <a href="../search.html"   
        onMouseOver="window.status='Search the $LISTNAME$ archives'; return 
true"
        onMouseOut="window.status=''; return true">
        <img src="/icons/bluesearcharchive.jpg"
          align=right width=125 height=35 border=0 
          alt="Search the $LISTNAME$ archives"></a>
...etc...
</IdxPgBegin>
--<cut>--

The problem is that the final rendering to HTML ends up as:

--<cut>--
  <a href="../search.html"   
    onMouseOver="window.status='Search the ICGnu
archives'; return true"
    onMouseOut="window.status=''; return true">
    <img src="/icons/bluesearcharchive.jpg"
      align=right width=125 height=35 border=0 
      alt="Search the ICGnu
archives"></a>
--<cut>--

Which is broken.  The LF in the window.status string is illegal if
tolerable in the second alt string.  I've tried quoting the value of
LISTNAME with various quote types to no avail.  Outside of the fact
that it seems questionable for MHonArc to put the EOL in the variable
value, is there a work around?

-- 
J C Lawrence                               Internet: claw(_at_)null(_dot_)net
(Contractor)                               Internet: coder(_at_)ibm(_dot_)net
---------(*)                     Internet: 
claw(_at_)under(_dot_)engr(_dot_)sgi(_dot_)com
...Honourary Member of Clan McFud -- Teamer's Avenging Monolith...

<Prev in Thread] Current Thread [Next in Thread>