Skip to content

Commit a9f20c1

Browse files
idodeclareVladimir Kotal
authored and
Vladimir Kotal
committed
Use HTML5 DOCTYPE, as XHTML was not at all confirming anyway
Fixes #1296
1 parent acee724 commit a9f20c1

File tree

88 files changed

+287
-476
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+287
-476
lines changed

src/org/opensolaris/opengrok/analysis/JFlexXrefUtils.java

+18-5
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,17 @@
4949
*/
5050
public class JFlexXrefUtils {
5151

52+
/**
53+
* Matches an HTML 5 ID or Name:
54+
* <pre>
55+
* {@code
56+
* (?U)^\S+$
57+
* }
58+
* </pre>
59+
* (Edit above and paste below [in NetBeans] for easy String escaping.)
60+
*/
61+
private static final Pattern HTML5_ID_NAME = Pattern.compile("(?U)^\\S+$");
62+
5263
/**
5364
* Appends the {@code url} to the specified {@code out} {@link Writer}.
5465
* <p>If {@code doEndingPushback} is true, then
@@ -259,12 +270,14 @@ public static boolean writeSymbol(Writer out, Definitions defs,
259270
// this file? Otherwise, we may end up with multiple anchors with
260271
// the same name.)
261272
//
262-
// Note: In HTML 4, the name must start with a letter, and can
263-
// only contain letters, digits, hyphens, underscores, colons,
264-
// and periods. https://www.w3.org/TR/html4/types.html#type-name
265273
// Skip the anchor if the symbol name is not a valid anchor
266-
// name. This restriction is lifted in HTML 5.
267-
if (symbol.matches("[a-zA-Z][a-zA-Z0-9_:.-]*")) {
274+
// name. Note: In HTML 5, an ID or Name can be any string, with
275+
// the following restrictions: must be at least one character
276+
// long, must not contain any space characters.
277+
// https://www.w3.org/TR/2010/WD-html-markup-20100624/datatypes.html
278+
// Formerly for HTML 4, ID and Name were very restricted, as
279+
// explained by @tulinkry.
280+
if (HTML5_ID_NAME.matcher(symbol).matches()) {
268281
out.append("<a class=\"");
269282
out.append(style_class);
270283
out.append("\" name=\"");

test/org/opensolaris/opengrok/analysis/ada/AdaXrefTest.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,10 @@ private int writeAdaXref(InputStream iss, PrintStream oss)
8686
}
8787

8888
private String getHtmlBegin() {
89-
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
90-
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n" +
91-
" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n" +
92-
"<html xmlns=\"http://www.w3.org/1999/xhtml\"" +
93-
" xml:lang=\"en\" lang=\"en\"\n" +
94-
" class=\"xref\">\n" +
89+
return "<!DOCTYPE html>\n" +
90+
"<html>\n" +
9591
"<head>\n" +
92+
"<meta charset=\"UTF-8\">\n" +
9693
"<title>sampleFile - OpenGrok cross reference" +
9794
" for /sampleFile</title></head><body>\n";
9895
}

test/org/opensolaris/opengrok/analysis/ada/ada_xrefres.html

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
5-
class="xref">
1+
<!DOCTYPE html>
2+
<html>
63
<head>
4+
<meta charset="UTF-8">
75
<title>sampleFile - OpenGrok cross reference for /sampleFile</title></head><body>
86
<a class="l" name="1" href="#1">1</a><span class="c">--</span>
97
<a class="l" name="2" href="#2">2</a><span class="c">-- CDDL HEADER START</span>

test/org/opensolaris/opengrok/analysis/c/CXrefTest.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,10 @@ private Definitions getTagsDefinitions() throws IOException {
109109
}
110110

111111
private static String getHtmlBegin() {
112-
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
113-
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n" +
114-
" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n" +
115-
"<html xmlns=\"http://www.w3.org/1999/xhtml\"" +
116-
" xml:lang=\"en\" lang=\"en\"\n" +
117-
" class=\"xref\">\n" +
112+
return "<!DOCTYPE html>\n" +
113+
"<html>\n" +
118114
"<head>\n" +
115+
"<meta charset=\"UTF-8\">\n" +
119116
"<title>sampleFile - OpenGrok cross reference" +
120117
" for /sampleFile</title></head><body>\n";
121118
}

test/org/opensolaris/opengrok/analysis/c/CxxXrefTest.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,10 @@ private Definitions getTagsDefinitions() throws IOException {
108108
}
109109

110110
private static String getHtmlBegin() {
111-
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
112-
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n" +
113-
" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n" +
114-
"<html xmlns=\"http://www.w3.org/1999/xhtml\"" +
115-
" xml:lang=\"en\" lang=\"en\"\n" +
116-
" class=\"xref\">\n" +
111+
return "<!DOCTYPE html>\n" +
112+
"<html>\n" +
117113
"<head>\n" +
114+
"<meta charset=\"UTF-8\">\n" +
118115
"<title>sampleFile - OpenGrok cross reference" +
119116
" for /sampleFile</title></head><body>\n";
120117
}

test/org/opensolaris/opengrok/analysis/c/c_xrefres.html

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
5-
class="xref">
1+
<!DOCTYPE html>
2+
<html>
63
<head>
4+
<meta charset="UTF-8">
75
<title>sampleFile - OpenGrok cross reference for /sampleFile</title></head><body>
86
<script type="text/javascript">/* <![CDATA[ */
97
function get_sym_list(){return [["Function","xf",[["abstime_to_reltime",70],["hrt2ts",40]]]];} /* ]]> */</script><a class="l" name="1" href="#1">1</a><span class='fold-space'>&nbsp;</span><span class="c">/*

test/org/opensolaris/opengrok/analysis/c/cc_xrefres.html

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
5-
class="xref">
1+
<!DOCTYPE html>
2+
<html>
63
<head>
4+
<meta charset="UTF-8">
75
<title>sampleFile - OpenGrok cross reference for /sampleFile</title></head><body>
86
<script type="text/javascript">/* <![CDATA[ */
97
function get_sym_list(){return [["Function","xf",[["Ancestor",37],["addInstance",84],["createTaggedAncestor",183],["definitionContains",223],["getDef",112],["getFieldName",100],["getInstOffset",124],["getNumInstances",118],["getPath",133],["getTag",106],["listTaggedAncestors",143],["~Ancestor",51]]]];} /* ]]> */</script><a class="l" name="1" href="#1">1</a><span class='fold-space'>&nbsp;</span><span class="c">/*

test/org/opensolaris/opengrok/analysis/clojure/ClojureXrefTest.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,10 @@ private Definitions getTagsDefinitions() throws IOException {
126126
}
127127

128128
private static String getHtmlBegin() {
129-
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
130-
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n" +
131-
" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n" +
132-
"<html xmlns=\"http://www.w3.org/1999/xhtml\"" +
133-
" xml:lang=\"en\" lang=\"en\"\n" +
134-
" class=\"xref\">\n" +
129+
return "<!DOCTYPE html>\n" +
130+
"<html>\n" +
135131
"<head>\n" +
132+
"<meta charset=\"UTF-8\">\n" +
136133
"<title>sampleFile - OpenGrok cross reference" +
137134
" for /sampleFile</title></head><body>\n";
138135
}

test/org/opensolaris/opengrok/analysis/clojure/sample_xref.html

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
5-
class="xref">
1+
<!DOCTYPE html>
2+
<html>
63
<head>
4+
<meta charset="UTF-8">
75
<title>sampleFile - OpenGrok cross reference for /sampleFile</title></head><body>
86
<script type="text/javascript">/* <![CDATA[ */
97
function get_sym_list(){return [["Namespace","xn",[["koans.23-meta",195]]]];} /* ]]> */</script><a class="l" name="1" href="#1">1</a><span class="c">; Eclipse Public License, Version 1.0 (EPL-1.0) (plain text) THE ACCOMPANYING</span>
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
5-
class="xref">
1+
<!DOCTYPE html>
2+
<html>
63
<head>
4+
<meta charset="UTF-8">
75
<title>sampleFile - OpenGrok cross reference for /sampleFile</title></head><body>
86
<a class="l" name="1" href="#1">1</a> <span class="s">&quot;Oops this string never end</span></body>
97
</html>

test/org/opensolaris/opengrok/analysis/csharp/CSharpXrefTest.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,10 @@ private Definitions getTagsDefinitions() throws IOException {
128128
}
129129

130130
private static String getHtmlBegin() {
131-
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
132-
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n" +
133-
" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n" +
134-
"<html xmlns=\"http://www.w3.org/1999/xhtml\"" +
135-
" xml:lang=\"en\" lang=\"en\"\n" +
136-
" class=\"xref\">\n" +
131+
return "<!DOCTYPE html>\n" +
132+
"<html>\n" +
137133
"<head>\n" +
134+
"<meta charset=\"UTF-8\">\n" +
138135
"<title>sampleFile - OpenGrok cross reference" +
139136
" for /sampleFile</title></head><body>\n";
140137
}

test/org/opensolaris/opengrok/analysis/csharp/sample_xref.html

+10-12
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
5-
class="xref">
1+
<!DOCTYPE html>
2+
<html>
63
<head>
4+
<meta charset="UTF-8">
75
<title>sampleFile - OpenGrok cross reference for /sampleFile</title></head><body>
86
<script type="text/javascript">/* <![CDATA[ */
97
function get_sym_list(){return [["Class","xc",[["Serialization",52],["WrappedDeserializer",203],["WrappedSerializer",109]]],["Namespace","xn",[["Microsoft.PowerShell",43]]],["Enum","xe",[["DataFormat",61]]],["Typedef","xt",[["Dbg",39]]],["Method","xmt",[["Deserialize",243],["End",172],["End",314],["Serialization",90],["Serialize",141],["Serialize",148],["WrappedDeserializer",206],["WrappedSerializer",112]]]];} /* ]]> */</script><a class="l" name="1" href="#1">1</a><span class='fold-space'>&nbsp;</span><span class="c">/*
@@ -200,9 +198,9 @@
200198
</span><a class="l" name="192" href="#192">192</a><span class='fold-space'>&nbsp;</span>
201199
<a class="l" name="193" href="#193">193</a><span class='fold-space'>&nbsp;</span>
202200
<a class="l" name="194" href="#194">194</a><span class='fold-space'>&nbsp;</span> <b>internal</b> <a href="/source/s?defs=TextWriter" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TextWriter</a> <a class="xfld" name="textWriter"/><a href="/source/s?refs=textWriter" class="xfld intelliWindow-symbol" data-definition-place="def">textWriter</a>&#59;
203-
<a class="l" name="195" href="#195">195</a><span class='fold-space'>&nbsp;</span> <b>private</b> <a href="/source/s?defs=XmlWriter" class="intelliWindow-symbol" data-definition-place="undefined-in-file">XmlWriter</a> <a href="/source/s?refs=_xmlWriter" class="xfld intelliWindow-symbol" data-definition-place="def">_xmlWriter</a>&#59;
204-
<a class="l" name="196" href="#196">196</a><span class='fold-space'>&nbsp;</span> <b>private</b> <a href="/source/s?defs=Serializer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Serializer</a> <a href="/source/s?refs=_xmlSerializer" class="xfld intelliWindow-symbol" data-definition-place="def">_xmlSerializer</a>&#59;
205-
<a class="l" name="197" href="#197">197</a><span class='fold-space'>&nbsp;</span> <b>private</b> <b>bool</b> <a href="/source/s?refs=_firstCall" class="xfld intelliWindow-symbol" data-definition-place="def">_firstCall</a> = <b>true</b>&#59;
201+
<a class="l" name="195" href="#195">195</a><span class='fold-space'>&nbsp;</span> <b>private</b> <a href="/source/s?defs=XmlWriter" class="intelliWindow-symbol" data-definition-place="undefined-in-file">XmlWriter</a> <a class="xfld" name="_xmlWriter"/><a href="/source/s?refs=_xmlWriter" class="xfld intelliWindow-symbol" data-definition-place="def">_xmlWriter</a>&#59;
202+
<a class="l" name="196" href="#196">196</a><span class='fold-space'>&nbsp;</span> <b>private</b> <a href="/source/s?defs=Serializer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Serializer</a> <a class="xfld" name="_xmlSerializer"/><a href="/source/s?refs=_xmlSerializer" class="xfld intelliWindow-symbol" data-definition-place="def">_xmlSerializer</a>&#59;
203+
<a class="l" name="197" href="#197">197</a><span class='fold-space'>&nbsp;</span> <b>private</b> <b>bool</b> <a class="xfld" name="_firstCall"/><a href="/source/s?refs=_firstCall" class="xfld intelliWindow-symbol" data-definition-place="def">_firstCall</a> = <b>true</b>&#59;
206204
<a class="l" name="198" href="#198">198</a><span class='fold-space'>&nbsp;</span> &#125;
207205
<a class="l" name="199" href="#199">199</a><span class='fold-space'>&nbsp;</span>
208206
<a class="hl" name="200" href="#200">200</a><span class='fold-space'>&nbsp;</span>
@@ -335,10 +333,10 @@
335333
</span><a class="l" name="327" href="#327">327</a><span class='fold-space'>&nbsp;</span>
336334
<a class="l" name="328" href="#328">328</a><span class='fold-space'>&nbsp;</span>
337335
<a class="l" name="329" href="#329">329</a><span class='fold-space'>&nbsp;</span> <b>internal</b> <a href="/source/s?defs=TextReader" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TextReader</a> <a class="xfld" name="textReader"/><a href="/source/s?refs=textReader" class="xfld intelliWindow-symbol" data-definition-place="def">textReader</a>&#59;
338-
<a class="hl" name="330" href="#330">330</a><span class='fold-space'>&nbsp;</span> <b>private</b> <a href="/source/s?defs=XmlReader" class="intelliWindow-symbol" data-definition-place="undefined-in-file">XmlReader</a> <a href="/source/s?refs=_xmlReader" class="xfld intelliWindow-symbol" data-definition-place="def">_xmlReader</a>&#59;
339-
<a class="l" name="331" href="#331">331</a><span class='fold-space'>&nbsp;</span> <b>private</b> <a href="/source/s?defs=Deserializer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Deserializer</a> <a href="/source/s?refs=_xmlDeserializer" class="xfld intelliWindow-symbol" data-definition-place="def">_xmlDeserializer</a>&#59;
340-
<a class="l" name="332" href="#332">332</a><span class='fold-space'>&nbsp;</span> <b>private</b> <b>string</b> <a href="/source/s?refs=_firstLine" class="xfld intelliWindow-symbol" data-definition-place="def">_firstLine</a>&#59;
341-
<a class="l" name="333" href="#333">333</a><span class='fold-space'>&nbsp;</span> <b>private</b> <b>bool</b> <a href="/source/s?refs=_atEnd" class="xfld intelliWindow-symbol" data-definition-place="def">_atEnd</a>&#59;
336+
<a class="hl" name="330" href="#330">330</a><span class='fold-space'>&nbsp;</span> <b>private</b> <a href="/source/s?defs=XmlReader" class="intelliWindow-symbol" data-definition-place="undefined-in-file">XmlReader</a> <a class="xfld" name="_xmlReader"/><a href="/source/s?refs=_xmlReader" class="xfld intelliWindow-symbol" data-definition-place="def">_xmlReader</a>&#59;
337+
<a class="l" name="331" href="#331">331</a><span class='fold-space'>&nbsp;</span> <b>private</b> <a href="/source/s?defs=Deserializer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Deserializer</a> <a class="xfld" name="_xmlDeserializer"/><a href="/source/s?refs=_xmlDeserializer" class="xfld intelliWindow-symbol" data-definition-place="def">_xmlDeserializer</a>&#59;
338+
<a class="l" name="332" href="#332">332</a><span class='fold-space'>&nbsp;</span> <b>private</b> <b>string</b> <a class="xfld" name="_firstLine"/><a href="/source/s?refs=_firstLine" class="xfld intelliWindow-symbol" data-definition-place="def">_firstLine</a>&#59;
339+
<a class="l" name="333" href="#333">333</a><span class='fold-space'>&nbsp;</span> <b>private</b> <b>bool</b> <a class="xfld" name="_atEnd"/><a href="/source/s?refs=_atEnd" class="xfld intelliWindow-symbol" data-definition-place="def">_atEnd</a>&#59;
342340
<a class="l" name="334" href="#334">334</a><span class='fold-space'>&nbsp;</span> &#125;
343341
<a class="l" name="335" href="#335">335</a><span class='fold-space'>&nbsp;</span>&#125; <span class="c">// namespace</span>
344342
<a class="l" name="336" href="#336">336</a><span class='fold-space'>&nbsp;</span><span class="c">/*<a href="http://example.com">http://example.com</a>*/</span>
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
5-
class="xref">
1+
<!DOCTYPE html>
2+
<html>
63
<head>
4+
<meta charset="UTF-8">
75
<title>sampleFile - OpenGrok cross reference for /sampleFile</title></head><body>
86
<a class="l" name="1" href="#1">1</a><span class='fold-space'>&nbsp;</span> <span class="s">&quot;Oops this string is not ter</span></body>
97
</html>

test/org/opensolaris/opengrok/analysis/document/TroffXrefTest.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,10 @@ private int writeTroffXref(PrintStream oss, InputStream iss,
104104
}
105105

106106
private static String getHtmlBegin() {
107-
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
108-
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n" +
109-
" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n" +
110-
"<html xmlns=\"http://www.w3.org/1999/xhtml\"" +
111-
" xml:lang=\"en\" lang=\"en\"\n" +
112-
" class=\"xref\">\n" +
107+
return "<!DOCTYPE html>\n" +
108+
"<html>\n" +
113109
"<head>\n" +
110+
"<meta charset=\"UTF-8\">\n" +
114111
"<title>sampleFile - OpenGrok cross reference" +
115112
" for /sampleFile</title></head><body><pre>\n";
116113
}

test/org/opensolaris/opengrok/analysis/document/sync_xref.html

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
5-
class="xref">
1+
<!DOCTYPE html>
2+
<html>
63
<head>
4+
<meta charset="UTF-8">
75
<title>sampleFile - OpenGrok cross reference for /sampleFile</title></head><body><pre>
86
</pre><div id="man"><span class="c"> te</span><br/><span class="c"> Copyright 1989 AT&amp;T</span><br/><span class="c"> Copyright (c) 1998, Sun Microsystems, Inc. , All Rights Reserved</span><br/><span class="c"> The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.</span><br/><span class="c"> You can obtain a copy of the license at <a href="/source/s?path=usr/">usr</a>/<a href="/source/s?path=usr/src/">src</a>/<a href="/source/s?path=usr/src/OPENSOLARIS.LICENSE">OPENSOLARIS.LICENSE</a> or http://<a href="/source/s?path=/www.opensolaris.org/">www.opensolaris.org</a>/<a href="/source/s?path=/www.opensolaris.org/os/">os</a>/<a href="/source/s?path=/www.opensolaris.org/os/licensing">licensing</a>. See the License for the specific language governing permissions and limitations under the License.</span><br/><span class="c"> When distributing Covered Code, include this CDDL HEADER in each file and include the License file at <a href="/source/s?path=usr/">usr</a>/<a href="/source/s?path=usr/src/">src</a>/<a href="/source/s?path=usr/src/OPENSOLARIS.LICENSE">OPENSOLARIS.LICENSE</a>. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]</span><br/><div class="b"> SYNC 1M "Dec 1, 1998"</div><div class="b"> NAME</div>sync - update the super block
97
<div class="b"> SYNOPSIS</div><p>

test/org/opensolaris/opengrok/analysis/eiffel/EiffelXrefTest.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,10 @@ private Definitions getTagsDefinitions() throws IOException {
128128
}
129129

130130
private static String getHtmlBegin() {
131-
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
132-
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n" +
133-
" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n" +
134-
"<html xmlns=\"http://www.w3.org/1999/xhtml\"" +
135-
" xml:lang=\"en\" lang=\"en\"\n" +
136-
" class=\"xref\">\n" +
131+
return "<!DOCTYPE html>\n" +
132+
"<html>\n" +
137133
"<head>\n" +
134+
"<meta charset=\"UTF-8\">\n" +
138135
"<title>sampleFile - OpenGrok cross reference" +
139136
" for /sampleFile</title></head><body>\n";
140137
}

0 commit comments

Comments
 (0)