HugoFara / lwt

Learn languages by reading! A language learning app stemmed from Learning with Texts (LWT).
https://hugofara.github.io/lwt/
The Unlicense
168 stars 19 forks source link

The first line of text will be added few spaces once re-edit #92

Closed 99MengXin closed 1 year ago

99MengXin commented 1 year ago

Describe the bug The first line of text will be added few spaces once re-edit.

To Reproduce Steps to reproduce the behavior:

  1. Go to any English text
  2. Click on Edit Text
  3. See error in Text column

Expected behavior No space shall be added.

Screenshots

截圖 2023-02-16 08 38 04

fig. 1 Create a new text and click Save and Open


截圖 2023-02-16 08 44 31

fig. 2 Click Edit Text in reading mode


截圖 2023-02-16 08 38 16

fig. 3 The first line of text is added few spaces


Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context This function works well in original LWT.

HugoFara commented 1 year ago

Hi, thank you for your issue! I noticed this behavior a long time ago, but it does not cause trouble, so I will investigate it when I will have more time! Feel free to send pull requests!