From a8531bf68065312856f123805f858d60e580a1f4 Mon Sep 17 00:00:00 2001 From: albert-github Date: Wed, 13 Feb 2019 19:12:51 +0100 Subject: Incorrect layout of class index (HTML) Regression of #6663 When looking at the example of #4935 the sorting and layout is correct in 1.8.14 but the layout is incorrect in 1.8.15. The incorrect layout is due to #6663 where a special case was solved for XHTML, the correct procedure should have been that in case of a table row without cells a dummy cell is added. The changes from #6663 have been reverted and the fix has been corrected (the special case occurred in the doxygen diagrams example). --- src/index.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/index.cpp b/src/index.cpp index 5126255..913f31b 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -2222,6 +2222,7 @@ static void writeAlphabeticalClassList(OutputList &ol, ClassDef::CompoundType ct // the last column may contain less items then the others //int colsInRow = (iletter()!=0) { + cellCont = true; QCString s = letterToLabel(cell->letter()); ol.writeString(""); ol.writeString("classDef()!=(ClassDef*)0x8) { + cellCont = true; cd = cell->classDef(); ol.writeString(""); QCString namesp,cname; @@ -2287,20 +2290,21 @@ static void writeAlphabeticalClassList(OutputList &ol, ClassDef::CompoundType ct } ol.writeNonBreakableSpace(3); } - else + ++(*colIterators[j]); + if (cell->letter()!=0 || cell->classDef()!=(ClassDef*)0x8) { - ol.writeString(""); + ol.writeString("\n"); } - ++(*colIterators[j]); - ol.writeString(""); } } else { + cellCont = true; ol.writeString(""); } } } + if (!cellCont) ol.writeString(""); // we need at least one cell in case of xhtml ol.writeString("\n"); } ol.writeString("\n"); -- cgit v0.12