2011-02-09, 17:48
filigran Wrote:Well, if you mean 'work' as in 'produces line breaks', then no, it just prints the characters. If you mean 'work' as in 'prints the chars so that they can be parsed and replaced by newlines' then yes, it works. I also tried with &# 10;, LF, and that produced the same results.
The characters aren't in the launchers.xml file, they only appear in XBMC, and only after using nano to edit the file apparently, using geany there are no squares (but, alas, no newlines either).
This is what I mean:
That particular rom plot looks like this:
Code:<rom>
<name>Clayfighter - Tournament edition</name>
<filename>/storage/roms/Super Nintendo/Clayfighter - Tournament edition.smc</filename>
<platform></platform>
<thumb>/storage/roms/Super Nintendo/covers/Clayfighter Tournament.jpg</thumb>
<fanart>/storage/roms/Super Nintendo/fanart/Clayfighter Tournament.gif</fanart>
<extrafanart></extrafanart>
<genre></genre>
<release></release>
<publisher>Super Nintendo</publisher>
<gameplot>A meteor made entirely out of clay crash-lands on the grounds of a humble American circus.
The goo from the interstellar object contaminates all of the circus' employees, transforming them into bizarre caricatures of their former selves, with new superpowers.</gameplot>
</rom>
I was going to put it up on pastebin too, but I opened the file in geany to check if they appeared there (they didn't), then tried adding a few new lines and saved the file, and now I can't reproduce it.. seems to be something intermittent (the worst errors, eh). Can't be sure if it's XBMC, your addon or nano, but that's not really important. Besides, my money is on nano anyway.
The important thing is, I want to produce this:
And the million dollar question: is it possible?
To sum up: I get squares sometimes, but they are only seen in XBMC, in the files there are only spaces, tabs and unix LF's. If I put the ASCII codes for LF and CR in there, the ASCII codes themselves are printed out, not their meaning. Guessing they can be parsed?
Btw: man, it's like a chat in here. I asked this yesterday, and I'm already five pages behind! Nice to see some activity though.
Those are tab characters
Easy quick fix - download UltraEdit, open the XML file in it, go to Format -> Tabs to Spaces