Page 1 of 1

[FIXED] " in names gives an error.

Posted: 09 Dec 2014, 16:00
by w1lla
Hi,

when trying to make a manialink i get a error on this kind of things

Code: Select all

$fff$sElite $000- $f70Batt$f80lefi$f90eld$fff"
Only fix for me is removing the " at the moment.

Re: " in names gives an error.

Posted: 09 Dec 2014, 16:11
by noyranea
Hi w1lla,

having an error while using a double quote in an xml attribute is quite normal, since the parser uses them to know what is the value of the attributes.

However, you can still use double quotes in attributes by escaping them :

Code: Select all

<label text="$fff$sElite $000- $f70Batt$f80lefi$f90eld$fff"" />
will work properly.

Have a nice day,

-- noyranea

Re: " in names gives an error.

Posted: 09 Dec 2014, 17:48
by Xymph
noyranea wrote:However, you can still use double quotes in attributes by escaping them :

Code: Select all

<label text="$fff$sElite $000- $f70Batt$f80lefi$f90eld$fff&quot" />
will work properly.
Wouldn't the correct syntax be ...&quot;" ?

Re: [FIXED] " in names gives an error.

Posted: 09 Dec 2014, 17:49
by noyranea
True ! Thank you for the correction :)