Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Don't mangle numeric lists! #2
Given a list like this:
You should get:
…and you do. If you use non-ASCII number characters, though, it gets mucked up. I'll use "full width" Arabic numerals here, for easy reading by Western eyes. Given this input:
…we get this output:
The first digit is kept as a number, but then we try adding 1 to it, and it's treated like a bogus string and we get a non-numeric warning and 1. Because non-number plus 1 is 1. Ho ho!
This branch just stops trying to handle these. For now!
I'm officially giving up my half-hearted attempt to handle non-ASCII lists. It's silly to try to handle cases where the bullet numbers are not all in one script, and it's a pain to ensure that they are because of how state is collected and munged. It could be done, but I think it would just be showing off. So, by aborting this work, I avoid sin.
The PR is good to merge, otherwise. Nihil obstat. ☩