I'm using Apple Numbers to compile raw data into a markup language. I've discovered that Numbers is changing certain characters in string constants in my formulas when I go to edit them. I needed to change
=CONCATENATE("<!--the answer is 42-->")
into
=CONCATENATE("<!--the answer is ",G1,"-->")
After editing the formula, I discovered it is now:
=CONCATENATE("<!––the answer is ",G1,"––>")
This looks almost the same, but the minus signs have been changed into en-dashes! As I'm generating essentially program code, this won't work. Grrr!!!
It looks like the change happens when the formula is brought into the editing window. It also looks like strings shorter than some length stay unchanged. So I have a workaround of coding each dash as a single character string:
=CONCATENATE("<!","-","-","the answer is ",G1,"-","-",">")
BTW, I also observed a "/" in a longer string get changed into a divide sign.
=CONCATENATE("<!--the answer is 42-->")
into
=CONCATENATE("<!--the answer is ",G1,"-->")
After editing the formula, I discovered it is now:
=CONCATENATE("<!––the answer is ",G1,"––>")
This looks almost the same, but the minus signs have been changed into en-dashes! As I'm generating essentially program code, this won't work. Grrr!!!
It looks like the change happens when the formula is brought into the editing window. It also looks like strings shorter than some length stay unchanged. So I have a workaround of coding each dash as a single character string:
=CONCATENATE("<!","-","-","the answer is ",G1,"-","-",">")
BTW, I also observed a "/" in a longer string get changed into a divide sign.