Bug introduced in 7.0 or earlier and persists through 11.0.0
Bug isn't present in version 5.2
Update: Sjoerd pointed out that this happens with any string and it is not related to StringForm. Just evaluate
"foo bar \\. daz.". Or type
"\\. d directly, and watch the cursor jump after typing the d.
I found the weirdest problem with messages and
This works fine:
But let's change that
b to a
What is going on? Where did that line break come from?
It turns out that the problem is actually in StringForm.
StringForm["foo bar \\. daz."]
It's a bug and it's there at least in 8.0.4-10.4.1. But can anyone offer an explanation about the cause? Removing either the backslash (remember that
\\ denotes a single backslash) or the
. or changing the
d to something else prevents the problem. It doesn't matter if I use a capital or lowercase d.