in discussion MIDI Game Forums / Programming » Multi line text
Hey guys,
I made a multi line writer for outputting stuff to the screen. I tried to copy off God's code, but it unfortunately was pretty rough. God thinks readability is overrated. Anyways, it doesn't actually seem like that hard of a thing, and it isn't, except for one thing..
The friggin newline character! aka: \n
I can't figure out why, but it won't register these buggers. When it parses in the xml files, though, it seems to add in a bunch of \r and \n tags at every carriage return, which is weird that it'd do both… anyways, it sees the \r tags and does a carriage return, but it simply doesn't seem to see the \n character anywhere. I actually added a case statement to alert me if it saw them, but I've gotten nothing.
And yet, because the \n chars are there, they're mucking up the output from the writer. There may be another error (some off by 1 thing) that I can fix, but until I can get rid of these phantom \n chars, it's too hard to figure out. Any ideas?





