summaryrefslogtreecommitdiffstats
path: root/src/index.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-12-06 16:03:52 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-12-06 16:03:52 (GMT)
commita4c2fd0e8f367531b78683ba920a853e23d101ec (patch)
treef32d5cbf3c859f13b75925415e6eaa80c887f8a4 /src/index.cpp
parent7bcd67f4affa7c3ce2ba6f652c893488952396a7 (diff)
downloadDoxygen-a4c2fd0e8f367531b78683ba920a853e23d101ec.zip
Doxygen-a4c2fd0e8f367531b78683ba920a853e23d101ec.tar.gz
Doxygen-a4c2fd0e8f367531b78683ba920a853e23d101ec.tar.bz2
XHTML problem with class index table
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.
Diffstat (limited to 'src/index.cpp')
-rw-r--r--src/index.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/index.cpp b/src/index.cpp
index 84b5e51..5439987 100644
--- a/src/index.cpp
+++ b/src/index.cpp
@@ -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