Fix sample code formatting
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/b3bc8e92 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/b3bc8e92 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/b3bc8e92 Branch: refs/heads/LOG4J2-1010&LOG4J2-1447-injectable-contextdata&better-datastructure Commit: b3bc8e928551cd2d1c1a04609b6f7a2fe245b6ee Parents: ca59f13 Author: Mikael Ståldal <mik...@staldal.nu> Authored: Sat Aug 27 11:46:51 2016 +0200 Committer: Mikael Ståldal <mik...@staldal.nu> Committed: Sat Aug 27 11:46:51 2016 +0200 ---------------------------------------------------------------------- src/site/xdoc/manual/scala-api.xml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/b3bc8e92/src/site/xdoc/manual/scala-api.xml ---------------------------------------------------------------------- diff --git a/src/site/xdoc/manual/scala-api.xml b/src/site/xdoc/manual/scala-api.xml index 0169717..b207468 100644 --- a/src/site/xdoc/manual/scala-api.xml +++ b/src/site/xdoc/manual/scala-api.xml @@ -41,13 +41,14 @@ </p> <h4>Example</h4> - <pre class="prettyprint linenums">import org.apache.logging.log4j.scala.Logging + <pre class="prettyprint linenums"> +import org.apache.logging.log4j.scala.Logging - class MyClass extends BaseClass with Logging { - def doStuff(): Unit = { - logger.info("Doing stuff") - } - } +class MyClass extends BaseClass with Logging { + def doStuff(): Unit = { + logger.info("Doing stuff") + } +} </pre> <p> The output from the call to logger.info() will vary significantly depending on the configuration @@ -64,7 +65,7 @@ to achieve this: </p> <pre class="prettyprint"> - logger.debug(s"Logging in user ${user.getName} with birthday ${user.calcBirthday}") +logger.debug(s"Logging in user ${user.getName} with birthday ${user.calcBirthday}") </pre> <p> Since the Scala Logger is implemented with macros, the String construction and method invocations