I've pushed the fix and reloaded the 10 docs. I have not reloaded earlier branches yet, but I'd be interested in some people reviewing a bunch of pages in the 10 docs mainly to see if (1) it fixes all the cases, and (2) it actually breaks some *other* cases.
It looks correct now.
+1
Did a spot check on known broken pages and chose some others at
random. Viewed the 9.6, 10, and devel versions. 10 and devel both
looked correct, and the 9.6 was broken where expected.
The only thing I saw (and this may be something to look at the SGML
source) was some blocks that looked overly indented, but it was consistent