Line spacing in text tool is inconsistent/different for first new line and following new lines

Summary:

When adding a text object which contains multiple lines, line spacing is inconsistent: The second line has seemingly correct spacing from fist line. however subsequent lines have about double line spacing (Even if i just hit "Enter" once for each newline).

See attached screenshot: linespacing

Steps to reproduce:

  • open Inkscape
  • Add a text object
  • Write "First line"
  • Hit "Enter" to insert new line
  • Write "Second line"
  • Hit "Enter" again to insert another new line
  • Write "Third line"

What happened?

Line spacing between "Second line" and "Third line", as well as any following lines is not the same as between "First line" and "Second line"

What should have happened?

Line spacing between all lines should be the same

Sample attachments: This is the svg file from which I created the screenshot above: Interestingly the linespacing displayed here in the GitLab preview is even more messed up (compared to my screenshot): Here spacing between fourth and fifth line seems correct, but between first and second line looks incorrect. linespacing.svg

Version info

Inkscape 1.1.1 (3bf5ae0d25, 2021-09-20, custom)

    GLib version:     2.70.2
    GTK version:      3.24.31
    glibmm version:   2.66.2
    gtkmm version:    3.24.5
    libxml2 version:  2.9.12
    libxslt version:  1.1.34
    Cairo version:    1.17.4
    Pango version:    1.50.3
    HarfBuzz version: 3.2.0
    Poppler version:  21.11.0

    OS version:       Arch Linux
Edited by Rainer Schoenberger