Follow TV Tropes

Following

Auto-space

Go To

Lock Space Wizard from Germany Since: Sep, 2010
Space Wizard
#1: Sep 29th 2012 at 7:00:24 PM

Is there any reason why the parser now automatically adds a space after a comma?

Example: 500,700,023.75

Programming and surgery have a lot of things in common: Don't start removing colons until you know what you're doing.
Deboss I see the Awesomeness. from Awesomeville Texas Since: Aug, 2009
I see the Awesomeness.
#2: Sep 29th 2012 at 7:44:28 PM

It's always done that to my knowledge.

Fight smart, not fair.
Stratadrake Dragon Writer Since: Oct, 2009
Dragon Writer
#3: Sep 29th 2012 at 8:14:36 PM

It does get just a little bit annoying when you have numbers with comma delimited thousands, because then you can't tell it apart from a simple list of numbers.

An Ear Worm is like a Rickroll: It is never going to give you up.
Xtifr World's Toughest Milkman Since: Jan, 2001 Relationship Status: Having tea with Cthulhu
World's Toughest Milkman
#4: Oct 1st 2012 at 1:38:01 AM

Should be easy to solve with a little regular-expression magic. I'm sure it's currently searching for ",(\\S)" (a comma followed by a non-whitespace character). This could easily be changed to ",([^\\s\\d])" (a comma followed by a character that is neither whitespace nor a digit).

edited 1st Oct '12 1:38:47 AM by Xtifr

Speaking words of fandom: let it squee, let it squee.
Fighteer Lost in Space from The Time Vortex (Time Abyss) Relationship Status: TV Tropes ruined my love life
Lost in Space
#5: Oct 1st 2012 at 7:38:50 AM

This has been part of the parsing code for ages. Not sure why. It also affects URL's.

"It's Occam's Shuriken! If the answer is elusive, never rule out ninjas!"
Stratadrake Dragon Writer Since: Oct, 2009
Dragon Writer
#6: Oct 1st 2012 at 8:34:19 AM

^ Affecting UR Ls is B A D. Not that there are many relevant UR Ls that need commas in them to begin with, but .... [1]

It also takes priority over nowiki tag, which is also bad. NOTHING is supposed to get priority over the nowiki tag, ever.

edited 1st Oct '12 8:39:37 AM by Stratadrake

An Ear Worm is like a Rickroll: It is never going to give you up.
SeptimusHeap from Switzerland (Edited uphill both ways) Relationship Status: Mu
#7: Mar 14th 2016 at 10:02:37 AM

Is a fix for this wanted?

"For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled." - Richard Feynman
war877 Grr... <3 from Untamed Wilds Since: Dec, 2015 Relationship Status: Having tea with Cthulhu
Grr... <3
#8: Mar 14th 2016 at 10:41:24 AM

1,2000,30 hello,world.

It works fine on the forum. It works fine on the main pages. I think this is fixed.

edited 14th Mar '16 10:45:15 AM by war877

SeptimusHeap from Switzerland (Edited uphill both ways) Relationship Status: Mu
#9: Mar 14th 2016 at 11:09:03 AM

Locking then.

"For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled." - Richard Feynman
Add Post

Total posts: 9
Top