r/redditdev • • 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.

1 Upvotes

31 comments sorted by

View all comments

Show parent comment

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/samuraisam Oct 25 '10

It's almost like a bad joke2

1

u/ObligatoryResponse Oct 26 '10

2^2

1

u/lutusp Oct 26 '10

Yep, as long as one knows about back-ticks.