SteveRidout / notepad-calculator

Prototype for notepadcalculator.com. A web-based notepad with calculation support
http://notepadcalculator.com
MIT License
58 stars 12 forks source link

Texts are Crushed #6

Open aravindnadumane opened 6 days ago

aravindnadumane commented 6 days ago

i'm a frequent user but since few weeks i't unpleasent to use it due to the a) crushed text variable name (i'm using the Chrome browser) b) Calculation results are unaligned, as one can see its a line above image

SteveRidout commented 6 days ago

I'm not seeing this issue on my notes using Chrome.

Can you please share:

  1. Which version of Chrome are you using?
  2. Copy and paste the text of a note which results in this error when pasted into notepadcalculator.com

Thanks!

aravindnadumane commented 6 days ago

My Chrome version is Version 128.0.6613.120 (Official Build) (64-bit) , i also tried with the Edge browser it is the same. I guess its something to do with the input data itself perhaps some patterns conflicts with the regEx in the source code ? anyways I have attached the whole content here, please copy paste in your browser

SteveRidout commented 5 days ago

Thanks for sharing your example. I've now fixed the issue. Turns out that the text wrapping CSS rules weren't quite in sync between the textarea and the overlay div which shows the highlighted variable names.

Please let me know if you come across any other problems!

aravindnadumane commented 5 days ago

Thanks a lot for fixing the issue Steve!, it's working now fine for me :)