[FIXED] " in names gives an error.

Give your feedback about the Interface Designer in this section

Moderator: NADEO

Post Reply
User avatar
w1lla
Posts: 2396
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

[FIXED] " in names gives an error.

Post 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.
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
User avatar
noyranea
Nadeo
Nadeo
Posts: 187
Joined: 29 Apr 2014, 14:50
Location: Paris, France

Re: " in names gives an error.

Post 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
User avatar
Xymph
Posts: 1426
Joined: 15 Jun 2010, 20:35
Contact:

Re: " in names gives an error.

Post 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;" ?
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub
User avatar
noyranea
Nadeo
Nadeo
Posts: 187
Joined: 29 Apr 2014, 14:50
Location: Paris, France

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

Post by noyranea »

True ! Thank you for the correction :)
Post Reply

Return to “Interface Designer”

Who is online

Users browsing this forum: No registered users and 1 guest