Skip to content

Commit 9814a04

Browse files
committed
Improve the validate-xref script.
The script currently wraps the xref contents in a <div> element before it passes it to the validator. The actual xref generated by list.jsp wraps it in <div><pre>...</pre></div>. Make the script do the same. This removes some false positives, where the xref starts by closing the <pre> tag and ends by opening a new one. It also makes the script detect more errors, where the xref uses tags not allowed inside a <pre> element.
1 parent d6e90d2 commit 9814a04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/validate-xref

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ xml_begin() {
6161
<html xmlns="http://www.w3.org/1999/xhtml">
6262
<head><title></title></head>
6363
<body>
64-
<div>
64+
<div><pre>
6565
EOF
6666
}
6767

6868
xml_end() {
6969
cat <<EOF
70-
</div>
70+
</pre></div>
7171
</body>
7272
</html>
7373
EOF

0 commit comments

Comments
 (0)