diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-02-17 20:15:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-17 20:15:16 (GMT) |
commit | 8014b32b76d6125a632b14dd5bcca304068707fa (patch) | |
tree | 8ad8bc37dafebb3e64ac82f84792b96fcf18f6b7 /src | |
parent | b9b335ff84f499a22444eb9f3ce6d0e30ba5e00a (diff) | |
parent | a8531bf68065312856f123805f858d60e580a1f4 (diff) | |
download | Doxygen-8014b32b76d6125a632b14dd5bcca304068707fa.zip Doxygen-8014b32b76d6125a632b14dd5bcca304068707fa.tar.gz Doxygen-8014b32b76d6125a632b14dd5bcca304068707fa.tar.bz2 |
Merge pull request #6835 from albert-github/feature/bug_layout_class_index
Incorrect layout of class index (HTML)
Diffstat (limited to 'src')
-rw-r--r-- | src/index.cpp | 12 |
1 files 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 = (i<rows-1) ? columns : itemsInLastRow; //printf("row [%d]\n",i); + bool cellCont = false; for (j=0;j<columns;j++) // foreach table column { if (colIterators[j]) @@ -2233,6 +2234,7 @@ static void writeAlphabeticalClassList(OutputList &ol, ClassDef::CompoundType ct { if (cell->letter()!=0) { + cellCont = true; QCString s = letterToLabel(cell->letter()); ol.writeString("<td rowspan=\"2\" valign=\"bottom\">"); ol.writeString("<a name=\"letter_"); @@ -2249,6 +2251,7 @@ static void writeAlphabeticalClassList(OutputList &ol, ClassDef::CompoundType ct } else if (cell->classDef()!=(ClassDef*)0x8) { + cellCont = true; cd = cell->classDef(); ol.writeString("<td valign=\"top\">"); 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("<td>"); + ol.writeString("</td>\n"); } - ++(*colIterators[j]); - ol.writeString("</td>"); } } else { + cellCont = true; ol.writeString("<td></td>"); } } } + if (!cellCont) ol.writeString("<td></td>"); // we need at least one cell in case of xhtml ol.writeString("</tr>\n"); } ol.writeString("</table>\n"); |