humdek-unibe-ch / sh-selfhelp

The SelfHelp WebApp is a tool that allows to create a web application that serves as a platform for research experiments.
Mozilla Public License 2.0
2 stars 0 forks source link

Bug in Markdown Elements #381

Closed Kodzhabashev closed 9 months ago

Kodzhabashev commented 10 months ago

In GitLab by @nicolas.scheurer on Jan 12, 2024, 10:48

image

As you can see in the image (greyed out), the markdown fields add spaces to the first line of the text area. This happens when the section is saved. This happens for example in the labels for the surveyjs and qualtrics plugins, but also in the markdown elements from the cms.

The whitespace can even be stacked, as you can see we have a lot of whitespace here on the image.

Usually you can save the content once and it will render nicely, but when you reopen the text area you will notice the indentation.

Then you can no longer simply save it, because it then takes on a monospace style.

Kodzhabashev commented 10 months ago

In GitLab by @Kodzhabashev on Jan 12, 2024, 10:50

Yep, very annoying bug that i introduced recently. I will fix it soon. Thanks for reporting.

Kodzhabashev commented 10 months ago

In GitLab by @Kodzhabashev on Jan 12, 2024, 10:50

Actually this happens in all textareas fields.

Kodzhabashev commented 10 months ago

In GitLab by @Kodzhabashev on Jan 12, 2024, 17:32

mentioned in commit 771c98b3878454ccd04bafe441de05f44e534d77

Kodzhabashev commented 10 months ago

In GitLab by @Kodzhabashev on Jan 12, 2024, 17:36

I debug this stupid bug 2-3 hours, excluded all libraries, everything.

Here is the solution

For better formatting I added some spaces between the textarea tags. Bad choice :cry:

Kodzhabashev commented 10 months ago

In GitLab by @Kodzhabashev on Jan 12, 2024, 17:36

closed

Kodzhabashev commented 10 months ago

In GitLab by @nicolas.scheurer on Jan 12, 2024, 17:45

10 year old SO thread to the rescue :smile: