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

problem: attributes being used as body



i've been using wml for months with no problems, but i woke up this
morning and my site looked like hell.  the only changes i made
yesterday were made by updating my debian testing distribution, mainly
upgrading to perl 5.6.0-20.  i'm running wml 1.7.4.


the front page should have a table of "what's new" items that looks
like:

http://jeffcovey.net/new/2000.html

instead, it now looks like:

http://jeffcovey.net/

the macros for building the table are defined at the bottom of:

http://jeffcovey.net/.lib/definitions.wml

you can see how they're used at:

http://jeffcovey.net/.source/index.wml


what's happening now is that the attributes are being used as the
body, the body is being inserted after the macro has been expanded,
and then the macro's closing tag is included in the output.  for
example, this:

<newitem 03/16/2001 "crab canon">
i added a crab canon by bach to my <ref scores> section.
</newitem>

should result in this:

  <tr>
    <td bgcolor="#CCFFCC" align="right">03/16/2001</td>
    <td bgcolor="#FFCC99">crab canon</td>
    <td bgcolor="#FFFFCC"><p>i added a crab canon by bach to my <a href="/music/scores/">scores</a> section.</td>
  </tr>

but is instead giving this:

  <tr>
    <td bgcolor="#CCFFCC" align="right">03/16/2001</td>
    <td bgcolor="#FFCC99">crab canon</td>
    <td bgcolor="#FFFFCC"><p>03/16/2001 "crab canon"</td>
  </tr>
i added a crab canon by bach to my <a href="">scores</a> section.
</newitem>


what can i do to fix it?

thanks,

-- 
|----------------------------------------------------------------------------|
| jeff covey jeff.covey@pobox.com http://pobox.com/~jeff.covey/ 410-669-4926 |
|----------------------------------------------------------------------------|
|        the luminous rabbit shall be to him as the voice of conscience.     |
|----------------------------------------------------------------------------|

PGP signature