Skip to content

Commit 7999091

Browse files
committed
8351555: Help section added in JDK-8350638 uses invalid HTML
Reviewed-by: liach, jjg
1 parent 8450ae9 commit 7999091

File tree

1 file changed

+2
-2
lines changed
  • src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html

1 file changed

+2
-2
lines changed

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HelpWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private Content getNavigationSection() {
177177
// Keyboard Navigation
178178
section = newHelpSection(contents.getContent("doclet.help.keyboard_navigation.title"),
179179
HtmlIds.HELP_KEYBOARD_NAVIGATION);
180-
var keyboardPara = HtmlTree.P(contents.getContent("doclet.help.keyboard_navigation.intro"));
180+
section.add(HtmlTree.P(contents.getContent("doclet.help.keyboard_navigation.intro")));
181181
var keyboardList = HtmlTree.UL();
182182
if (options.createIndex()) {
183183
keyboardList.add(HtmlTree.LI(contents.getContent("doclet.help.keyboard_navigation.index",
@@ -192,7 +192,7 @@ private Content getNavigationSection() {
192192
HtmlTree.KBD(Entity.of("uparrow")))));
193193
keyboardList.add(HtmlTree.LI(contents.getContent("doclet.help.keyboard_navigation.tabs",
194194
HtmlTree.KBD(Entity.of("leftarrow")), HtmlTree.KBD(Entity.of("rightarrow")))));
195-
navSection.add(section.add(keyboardPara.add(keyboardList)));
195+
navSection.add(section.add(keyboardList));
196196

197197
tableOfContents.popNestedList();
198198

0 commit comments

Comments
 (0)