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

FormFeed (U+000C FF) should be included in QChar::SpecialCharacter, because it is considered as ASCII whitespace by html.

    XMLWordPrintable

Details

    • 7922cd5272f84ca4180d6ebb45e5a81a45d14a92 (qt/qtbase/dev)

    Description

      The infra standard here:

      https://infra.spec.whatwg.org/#ascii-whitespace

      Defines ASCII whitespace as:

      • U+0009 TAB,
      • U+000A LF,
      • U+000C FF,
      • U+000D CR, 
      • U+0020 SPACE.

      QChar::SpecialCharacter here does not include it:

      https://doc.qt.io/qt-5/qchar.html#SpecialCharacter-enum

      It would be nice to add, particularly when it comes to doing switch cases:

      #define case_Html_Whitespace \
      	case QChar(QChar::Space)         .toLatin1():\
      	case QChar(QChar::Tabulation)    .toLatin1():\
      	case QChar(QChar::LineFeed)      .toLatin1():\
      	case QChar(QChar::CarriageReturn).toLatin1():\
              case QChar(QChar::FormFeed)      .toLatin1(): /* Doesn't exist */

       

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            akiva Akiva Avraham
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes