UB-Mannheim / ocr-gt-tools

Ergonomic line-by-line transcription of scanned text.
GNU Affero General Public License v3.0
47 stars 11 forks source link

Unwanted empty lines in Kommentare #34

Closed zuphilip closed 8 years ago

zuphilip commented 8 years ago

If the Kommentar field is non-empty or was non-empty before, then adding "Kursiv" etc. will generate additional empty lines. To reproduce try this:

  1. Go to a new line and open the Kommentar
  2. Write some text in the Kommentar (and delete it again)
  3. Click on "Kursiv"
kba commented 8 years ago

Since this is tricky to get right, I implemented a compromise: The ugly newlines are still created but are removed (also in the view) when the page is saved.

kba commented 8 years ago

Should be fixed now: contenteditable lines are reformatted on losing focus or save.