sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1815704 - /sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/internal/book/Assembler.java
Date Sat, 18 Nov 2017 23:57:00 GMT
Author: desruisseaux
Date: Sat Nov 18 23:57:00 2017
New Revision: 1815704

URL: http://svn.apache.org/viewvc?rev=1815704&view=rev
Log:
Wrap the "In this chapter" text in a <p> element, for easier CSS styling.

Modified:
    sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/internal/book/Assembler.java

Modified: sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/internal/book/Assembler.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/internal/book/Assembler.java?rev=1815704&r1=1815703&r2=1815704&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/internal/book/Assembler.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/internal/book/Assembler.java
[UTF-8] Sat Nov 18 23:57:00 2017
@@ -391,7 +391,9 @@ public final class Assembler {
                                         tableOfChapterContent = document.createElement("ul");
                                         tableOfChapterContent.setAttribute("class", "toc");
                                         final Node nav = document.createElement("nav");
-                                        nav.appendChild(document.createTextNode(resources.getString("this-chapter")));
+                                        final Node p = document.createElement("p");
+                                        p.appendChild(document.createTextNode(resources.getString("this-chapter")));
+                                        nav.appendChild(p);
                                         nav.appendChild(tableOfChapterContent);
                                         Node insertionPoint = node.getParentNode();     
       // The <header> element.
                                         do insertionPoint = insertionPoint.getNextSibling();
   // The first paragraph.



Mime
View raw message