QT VERSION: 5.13.2 Text cursor selection: "Hello world" QTextCharFormat font: QFont( "Jokerman,-1,-1,5,50,0,0,0,0,0" ) QCursor::mergeCharFormat Resulting doc to html: "\n\n

Hello world

"