Skip to content

Commit

Permalink
XHTML problem with class index table
Browse files Browse the repository at this point in the history
When running xhtml checker on the doxygen diagram example we get:
Element tr content does not follow the DTD, expecting (th | td)+, got
Document diagrams/xhtml/classes.xhtml does not validate
This is due to an empty `<tr></tr>`, adding the appropriate column definitions solves the problem.
  • Loading branch information
albert-github committed Dec 6, 2018
1 parent 7bcd67f commit a4c2fd0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2284,11 +2284,12 @@ static void writeAlphabeticalClassList(OutputList &ol, ClassDef::CompoundType ct
}
ol.writeNonBreakableSpace(3);
}
++(*colIterators[j]);
if (cell->letter()!=0 || cell->classDef()!=(ClassDef*)0x8)
{
ol.writeString("</td>");
else
{
ol.writeString("<td>");
}
++(*colIterators[j]);
ol.writeString("</td>");
}
}
else
Expand Down

0 comments on commit a4c2fd0

Please sign in to comment.