CodePadApp / codepad-issues

Issue tracker for CodePad
https://codepad.app
4 stars 0 forks source link

Extra character in input on Mac running Safari or on iPad #60

Closed stevenwhiz closed 2 years ago

stevenwhiz commented 2 years ago

num = input('Enter number: ') print(int(num))

This fails on iPad running Safari or Chrome, and fails on Mac running Safari but is okay on Chrome. The error is:

Traceback (most recent call last): File "/home/bg62x3qw/main.py", line 2, in print(int(num)) ValueError: invalid literal for int() with base 10: '\u200b5'

The problem stems from the extra character added in positioning the cursor on the screen.

ethan-vanderheijden commented 2 years ago

Closed with https://github.com/CodePadSite/codepad/pull/165