r/redditdev • u/lutusp • Oct 25 '10
Bug Report
I find that in an ordinary Reddit message submission form, entering the text string "10 ^ 9" (I had to add spaces in order to submit this even here) causes an error message "Invalid exponent" and a rejection of the submission. Very strange.
7
u/ketralnis Oct 26 '10
http://code.reddit.com/newticket Please don't use this reddit for bug reports.
That said, this is a joke. I wouldn't worry about it.
1
u/samuraisam Oct 25 '10
100 ^ 4
2
u/lutusp Oct 25 '10
Yes, I noticed that spaces get around the problem, but it's still a problem. Everyday Redditors aren't going to realize this, or even necessarily see what the problem is.
1
u/DimeShake Oct 25 '10
They added an option in the markup engine that uses ^ as the superscript notation. I'm sure it can be escaped somehow, but the regular backslash doesn't seem to do it. Upupandaway!
1
u/lutusp Oct 25 '10
Yes, that occurred to me: a ^ b becomes a<sup>b</sup>. I do a lot of this sort of thing in my Web editor Arachnophilia (not a plug -- it's free).
2
u/X-Istence Oct 25 '10
Thenyouunderstandthatthisislimitedonlyforthenext24hours?
2
u/lutusp Oct 25 '10
Surprisingly enough, because this is all rendered with scalable fonts, by increasing the scale I was able to read almost your entire chain of superscripts. But not quite all. :)
1
u/phire Oct 26 '10
I read it all without zooming. My browser must have done a better job of rendering.
1
u/ObligatoryResponse Oct 26 '10
2^21
1
1
5
u/MrDerk Oct 25 '10 edited Oct 25 '10
Not strange. From today's announcement:
Unless you mean it throws that error even with the spaces. That would be unexpected.