QTextEdit list marker style affected by block style
-
When I create a list, e.g.
- foo
- bar
and I change the block style of foo, the "1." also changes to match that style.
Is there a way to prevent that?
-
@JonB
It's bad HTML. The 2nd and 3rd list items are supposed to be indented.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'PibotoLt'; font-size:12pt; font-weight:400; font-style:normal;"> <ol type="A" style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Bitstream Charter'; color:#ff0000;">testing</span></li></ol> <ol style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 2;"><li style=" color:#00ffff;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">fubar</li> <li style=" color:#00ffff;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">snafu</li></ol></body></html> -
@JonB
It's bad HTML. The 2nd and 3rd list items are supposed to be indented.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'PibotoLt'; font-size:12pt; font-weight:400; font-style:normal;"> <ol type="A" style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Bitstream Charter'; color:#ff0000;">testing</span></li></ol> <ol style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 2;"><li style=" color:#00ffff;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">fubar</li> <li style=" color:#00ffff;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">snafu</li></ol></body></html>@clarify
Well, originally you said the1.took on whatever style of the text following it, now you talk about it failing to indent correctly. I was just trying to confirm that whatever style you say it takes --- and you don't say what that is or show the output so it's hard for someone else to judge --- was not somehow around the1..If I am not mistaken, this show two ordered lists, the first being alphabetical with just one item and the second being default (numerical?) with two items.