diff options
author | Rainer Keller <Rainer.Keller@qt.io> | 2020-01-07 09:13:21 +0100 |
---|---|---|
committer | Rainer Keller <Rainer.Keller@qt.io> | 2020-01-13 09:25:39 +0100 |
commit | 76fbe75abee7d77911467d56630176f777e8ed78 (patch) | |
tree | 3f04e6aa0203fca2166d89ef9e32eab3fe261c25 /src/corelib/statemachine | |
parent | 18e06c37e10943f4b4f6d57b7044b9bce3a23202 (diff) |
Remove empty block at beginning of imported markdown
An empty QTextDocument already contains a block; so when the formatting
is fully determined, if the document is still empty, then instead of
inserting a new block, we can set formatting on the cursor, which
affects the pre-existing block, before inserting text. This avoids
leaving a blank line (the default block) above the inserted content.
Fixes: QTBUG-81060
Change-Id: I14e45e300a602493aa59680417d74d4c2b25862d
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/corelib/statemachine')
0 files changed, 0 insertions, 0 deletions