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 2 months ago

aravindnadumane commented 2 months 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 2 months 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 2 months 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 2 months 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 2 months ago

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