This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
It seems that the presence of <tt> absorbs an extra level of indentation. In the example below, the second </li> is one level too less indentation, so is the line with <tt> itself. <ul> <li> OK </li> <li> <tt>NOT OK</tt> </li> </ul>
take into account Bug 204693 - error formatting on ' hr ' tag
Formatter follows document's DTD. If you specify your document to be of HTML 4, eg.: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> then formatting works fine. If you specify <!DOCTYPE HTML> which means HTML5 then formatting gets broken because <tt> is not valid HTML5 tag.