From 1771ee9dfa2aacba8596ccfd29372ae7c46d970f Mon Sep 17 00:00:00 2001 From: "Dr. Martin Goik" <goik@hdm-stuttgart.de> Date: Thu, 15 Apr 2021 11:19:46 +0200 Subject: [PATCH] X-mas tree corrected --- Doc/Sd1/statements.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/Sd1/statements.xml b/Doc/Sd1/statements.xml index 8a50c45e7..07524b876 100644 --- a/Doc/Sd1/statements.xml +++ b/Doc/Sd1/statements.xml @@ -3764,9 +3764,9 @@ System.out.println("<emphasis role="red">[___]</emphasis>"); // Printing the tree's top. We have to escape the backslash using \\. System.out.print(""" - \\ / - -->*<-- - /_\\""".indent(numberOfRowGroups)); + \\ / + -->*<-- + /_\\""".indent(numberOfRowGroups)); // Printing the tree's body @@ -3777,7 +3777,7 @@ for (int rowGroup = 0; rowGroup < numberOfRowGroups; rowGroup++) { System.out.print(('/' + "_\\".repeat(rowGroup + 2)).indent(indentation)); // Second body line of current group - System.out.print(("/_".repeat(rowGroup + 2) + '\\').indent(indentation)); + System.out.print(("/_".repeat(rowGroup + 3) + '\\').indent(indentation - 1)); } // Printing the tree's trunk System.out.print("[___]".indent(numberOfRowGroups + 1));</programlisting> -- GitLab