Remove trailing blank lines from code samples
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/2817a137 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/2817a137 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/2817a137 Branch: refs/heads/master Commit: 2817a137c10f7e12d7d8cf8336ba6ece845d20af Parents: 0f882c8 Author: Matt Sicker <[email protected]> Authored: Thu Jun 9 12:01:36 2016 -0500 Committer: Matt Sicker <[email protected]> Committed: Thu Jun 9 12:01:36 2016 -0500 ---------------------------------------------------------------------- src/site/xdoc/manual/extending.xml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/2817a137/src/site/xdoc/manual/extending.xml ---------------------------------------------------------------------- diff --git a/src/site/xdoc/manual/extending.xml b/src/site/xdoc/manual/extending.xml index 110f04d..0f98e60 100644 --- a/src/site/xdoc/manual/extending.xml +++ b/src/site/xdoc/manual/extending.xml @@ -420,8 +420,7 @@ public static ListAppender createAppender( @PluginElement("Layout") final Layout<? extends Serializable> layout, @PluginElement("Filter") final Filter filter) { return new ListAppender(name, filter, layout, newLine, raw); -} - ]]></pre> +}]]></pre> <p> Here is that same factory using a builder pattern instead: </p> @@ -478,8 +477,7 @@ public static class Builder implements org.apache.logging.log4j.core.util.Builde public ListAppender build() { return new ListAppender(name, filter, layout, entryPerNewLine, raw); } -} - ]]></pre> +}]]></pre> <p> The only difference in annotations is using <code>@PluginBuilderAttribute</code> instead of <code>@PluginAttribute</code> so that default values and reflection can be used instead of specifying @@ -502,7 +500,7 @@ public static class Builder implements org.apache.logging.log4j.core.util.Builde <pre class="prettyprint linenums"><![CDATA[ ListAppender list1 = ListAppender.createAppender("List1", true, false, null, null); ListAppender list2 = ListAppender.newBuilder().setName("List1").setEntryPerNewLine(true).build(); - ]]></pre> +]]></pre> </subsection> <subsection name="Custom Plugins"> <p>See the <a href="plugins.html">Plugins</a> section of the manual.</p>
