Multi line text
Forum » MIDI Game Forums / Programming » Multi line text
Started by: BenHumberstonBenHumberston
On: 1176953065|%e %b %Y, %H:%M %Z|agohover
Number of posts: 1
rss icon RSS: New posts
Multi line text
BenHumberstonBenHumberston 1176953065|%e %b %Y, %H:%M %Z|agohover

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?

unfold Multi line text by BenHumberstonBenHumberston, 1176953065|%e %b %Y, %H:%M %Z|agohover
New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.