Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76793

First <li> inside of an <ul> isn't rendered correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.12.3
    • GUI: Text handling
    • None
    • Linux/X11

    Description

      When using an <ul>, the bullet of the first <li> isn't positioned corectly. It doesn't matter where it's used, I saw this effect inside a QLabel as well as inside a QMessageBox.

      I'll attach a screenshot of a QMessageBox with a real-life example. The code is:

          QMessageBox::information(this,
              tr("Vorlage für Datenbankdateinamen"),
              tr("<p>Zum Parsen (Übersetzen/Umsetzen) der Vorlage wird die Funktion "
              "<kbd>QDateTime::toString()</kbd> benutzt. Die genaue Syntax ist in der "
              "<a href=\"https://doc.qt.io/qt-5/qdatetime.html#toString\">Dokumentation zu "
              "<kbd>QDateTime</kbd></a> beschrieben.</p>"
              "<p>Für diesen Einsatzzweck am relevantesten:</p>"
              "<ul>"
              "<li>Alles in einfachen Anführungszeichen <kbd>'</kbd> wird genau so angezeigt</li>"
              "<li><kbd>yy</kbd> bzw. <kbd>yyyy</kbd> wird mit der aktuellen Jahreszahl ersetzt</li>"
              "<li><kbd>M</kbd> bis <kbd>MMMM</kbd> wird mit dem aktuellen Monat ersetzt</li>"
              "</ul>"));

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            l3u Tobias Leupold
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes