qt6-bb10/tests/auto/gui/text
Shawn Rutledge 5e55297ee0 Markdown writer: indent fence consistent with code block
- Under a list item, we've been indenting code blocks:
  ```
  int main() ...
  ```
- But it's also ok *not* to indent (and github handles that better):
```
int main() ...
```
- There was a bug that when the code is not indented, the fence would be
  indented anyway:
  ```
int main() ...
  ```
  and that was not OK, neither for md4c nor for github.

Now with this change, either way is rewritable: you can read markdown
into QTextDocument, make small edits and write it back out again, with
the indentation being preserved (the code block is either part of the
list item, thus indented, or else it's outside the list completely).

Pick-to: 6.2
Task-number: QTBUG-92445
Change-Id: I5f51899e28ba9f09b88a71e640d9283416cce171
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2021-10-14 19:57:09 +02:00
..
qabstracttextdocumentlayout Remove the qmake project files 2021-01-07 15:32:28 +01:00
qcssparser tests: Use QT_TESTCASE_SOURCEDIR define 2021-08-11 21:03:56 +02:00
qfont Compile autotests for Integrity 2021-09-20 17:29:04 +03:00
qfontcache QFontCache: don't start cleanup timer if we are not in the main thread 2021-10-01 16:46:48 +02:00
qfontdatabase Respect font stretch if set together with font style 2021-10-04 16:10:11 +02:00
qfontmetrics Remove the qmake project files 2021-01-07 15:32:28 +01:00
qglyphrun Fix compiler warning: don't mix signed and unsigned int in comparison 2021-02-11 21:06:00 +01:00
qinputcontrol Remove the qmake project files 2021-01-07 15:32:28 +01:00
qrawfont Fix bug with NoFontMerging when font does not support script 2021-08-19 13:35:40 +02:00
qstatictext Remove QEXPECT_FAIL for tests that pass now on Android 2021-03-31 17:31:12 +02:00
qsyntaxhighlighter Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtextblock Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtextcursor Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtextdocument Support background-color CSS styling on <hr/> 2021-10-14 17:09:20 +02:00
qtextdocumentfragment Support background-color CSS styling on <hr/> 2021-10-14 17:09:20 +02:00
qtextdocumentlayout Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtextformat Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtextimagehandler Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtextlayout Avoid overflow in text layout 2021-06-17 09:58:27 +00:00
qtextlist Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtextmarkdownimporter tests: Remove unused SRCDIR defines 2021-08-17 12:41:57 +00:00
qtextmarkdownwriter Markdown writer: indent fence consistent with code block 2021-10-14 19:57:09 +02:00
qtextobject Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtextodfwriter tests: Remove unused SRCDIR defines 2021-08-17 12:41:57 +00:00
qtextpiecetable Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtextscriptengine Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtexttable tst_qtexttable: fix fail on QEMU ARMv7 2021-02-05 18:36:51 +00:00
qzip Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt Android: exclude tests crashing at start 2020-11-16 13:35:44 +02:00