Perl/Tk text editor designed for editing and formatting public domain material for inclusion at Project Gutenberg
GNU General Public License v2.0
9
stars
10
forks
source link
Convert fractions converts negative fractions incorrectly. #1295
Closed
windymilla closed 5 months ago
The fraction
-1/2
gets converted to ½This is because the
-
is captured by the regex, presumably to catch1-1/2
.It should only remove the hyphen if the character before the hyphen is a digit.