Categories > TinyButStrong general >

bug in magnet;mtype=*m ?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Alan Lake
Date: 2009-12-16
Time: 09:38

bug in magnet;mtype=*m ?

<div>Empty country:
    Name: [onload.name],
    City: [onload.city]<br />
    Country:[onload.country_empty;magnet=br;mtype=m*]</div>
doesn't work but
<div>Empty country:
    Name: [onload.name],
    City: [onload.city]<br>
    Country:[onload.country_empty;magnet=br;mtype=m*]</div>
does.  The difference is between <br> and <br />.  This same condition exists with mtype=*m.
Check out <img href="xx.png"> vs. <img href="xx.png" /> also.
By: Skrol29
Date: 2010-01-05
Time: 00:51

Re: bug in magnet;mtype=*m ?

Hi Alan,

I've not tested your snippet, but I think your must be right.
Nevertheless, this is not exactly a bug because the syntax "magnet=br" assumes that there is both an opening and a clothing <br> tag, even if "mtype=m*" tells to consider only the opening tag.
We should try with the syntax "magnet=br/" to see if it's works correctly.

I will work on that detail to see if it can be enhanced.

Happy new year !
By: Alan Lake
Date: 2010-01-05
Time: 18:20

Re: bug in magnet;mtype=*m ?

Happy New Year, Skrol!

Sadly "magnet=br/" doesn't work either.  We even tried "magnet=br /".

In creating a fix for this, you should remember to continue allowing a destination of <br> as well as a destination of <br />.  (If you allow for <br/>, you will be sent to the Bastille for 20 years.)

Don't forget to allow for <img ..../>.  That will be more complicated.