From 03d73458bf30e9bdaf54fd4e0dd1ecf5d0932391 Mon Sep 17 00:00:00 2001 From: "Dr. Martin Goik" <goik@hdm-stuttgart.de> Date: Thu, 21 May 2020 14:39:39 +0200 Subject: [PATCH] Cosmetics --- .../hdm_stuttgart/mi/sd1/XmasUsingFormat.java | 1 - Doc/Sd1/statements.xml | 26 +++++++++---------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/Doc/Sd1/Ref/Statements/MoreFunXmasTree/src/main/java/de/hdm_stuttgart/mi/sd1/XmasUsingFormat.java b/Doc/Sd1/Ref/Statements/MoreFunXmasTree/src/main/java/de/hdm_stuttgart/mi/sd1/XmasUsingFormat.java index 8722cd82f..de2222ce1 100644 --- a/Doc/Sd1/Ref/Statements/MoreFunXmasTree/src/main/java/de/hdm_stuttgart/mi/sd1/XmasUsingFormat.java +++ b/Doc/Sd1/Ref/Statements/MoreFunXmasTree/src/main/java/de/hdm_stuttgart/mi/sd1/XmasUsingFormat.java @@ -49,5 +49,4 @@ public class XmasUsingFormat { // Printing the tree's trunk System.out.format("%"+ (numberOfRowGroups + 6) + "s\n", "[___]"); } - } diff --git a/Doc/Sd1/statements.xml b/Doc/Sd1/statements.xml index a7cdefbf6..6ca17a1a9 100644 --- a/Doc/Sd1/statements.xml +++ b/Doc/Sd1/statements.xml @@ -2891,7 +2891,7 @@ System.out.print("<emphasis role="red">\\</emphasis>"); // Print a single backsl <para>Printing our tree's very top thus requires:</para> - <informaltable border="0"> + <informaltable border="1"> <col width="80%"/> <col width="20%"/> @@ -2915,12 +2915,12 @@ System.out.println("<emphasis role="red">\\ /</emphasis>"); </tr> </informaltable> - <para>As you'll probably realize the expression - <code>numberOfRowGroups + 1</code> equals 6 in case of 5 row - groups like in the illustration given before. Printing our - tree's top next two of lines is straightforward:</para> + <para>The expression <code>numberOfRowGroups + 1</code> equals + an indent of 6 in case of 5 row groups in the illustration given + before. Printing our tree's top next two of lines is + straightforward:</para> - <informaltable border="0"> + <informaltable border="1"> <col width="80%"/> <col width="20%"/> @@ -2960,9 +2960,9 @@ System.out.println("<emphasis role="red">/_\\</emphasis>");</programlisting></td }</programlisting> - <para>We now show the loop's gory details:</para> + <para>We now show the same loop's gory details:</para> - <informaltable border="0"> + <informaltable border="1"> <col width="80%"/> <col width="20%"/> @@ -3020,7 +3020,7 @@ System.out.println("<emphasis role="red">/_\\</emphasis>");</programlisting></td <para>Finally printing the tree's trunk:</para> - <informaltable border="0"> + <informaltable border="1"> <col width="80%"/> <col width="20%"/> @@ -3063,10 +3063,10 @@ System.out.println("<emphasis role="red">[___]</emphasis>"); xlink:href="https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/io/PrintStream.html#format(java.lang.String,java.lang.Object...)">format()</methodname> method as in <xref linkend="sd1QandaSquareNumberTableFormatted"/> allows for - getting rid of these loops completely. As an example printing - the tree's top simplifies to:</para> + getting rid of these. As an example printing the tree's top + simplifies to:</para> - <informaltable border="0"> + <informaltable border="1"> <col width="70%"/> <col width="30%"/> @@ -3102,7 +3102,7 @@ System.out.println("\\ /"); </programlisting></td> xlink:href="https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/lang/String.html#repeat(int)">repeat()</methodname> method:</para> - <informaltable border="0"> + <informaltable border="1"> <col width="70%"/> <col width="30%"/> -- GitLab