Does anyone know why this happens?

DaMaster0

Member
I am struggling with file_to_map (again) and I started printing out results for the map. Here's what I got:

Code:
13

"Looking for a Larva in All the Wrong Places"\
"Ooh, I Think I Smell a Rat."\
"Ooh, I Think I Smell a Bat."\
"The Goblin Who Wouldn't Be King"\
"Trial By Friar"\
"Cyrptic Emanations"\
"Am I my Trapper's Keeper?"\
"A Quest, LOL"\
"The Rain on the Plains is Mainly Garbage"\
"Make War, Not... Oh, Wait"\
"The Final Ultimate Epic Final Conflict"}

false
13

"Looking for a Larva in All the Wrong Places"\
"Ooh, I Think I Smell a Rat."\
"Ooh, I Think I Smell a Bat."\
"The Goblin Who Wouldn't Be King"\
"Trial By Friar"\
"Cyrptic Emanations"\
"Am I my Trapper's Keeper?"\
"A Quest, LOL"\
"The Rain on the Plains is Mainly Garbage"\
"Make War, Not... Oh, Wait"\
"The Final Ultimate Epic Final Conflict"}

false
done

I didn't put the \ after all the lines when I was typing it! Why did it insert them, and how do I get rid of them?? I'm using textedit on a mac, and whenever I open it up, it shows all the lines without the \s!

Ok, wait. I had a thought while writing this and opened the txt file in textwrangler. Then the \s showed up. Does anyone know why textedit does that and if there's a way I can still use textedit without it putting in the \s?
 

jasonharper

Developer
TextEdit creates RTF files by default; you need to use Format -> Make Plain Text before saving any file for use with KoLmafia.

TextWrangler is an infinitely better tool for this job; in particular, it has a Show Invisibles mode that lets you tell the difference between a tab (which delimits fields) and a space (which is just part of a field).
 
Top