Fixed bug where applying inline formats to nested list elements would produce an incorrect formatting result.