/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements. See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache license, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the license for the specific language governing permissions and
 * limitations under the license.
 */
package org.apache.logging.log4j.core.pattern;

import org.apache.logging.log4j.core.LogEvent;
import org.apache.logging.log4j.core.config.plugins.Plugin;
import org.apache.logging.log4j.core.util.Constants;

/**
 * Formats a line separator.
 */
@Plugin(name = "LineSeparatorPatternConverter", category = "Converter")
@ConverterKeys({ "n" })
public final class LineSeparatorPatternConverter extends LogEventPatternConverter {

  /**
   * Singleton.
   */
  private static final LineSeparatorPatternConverter INSTANCE =
    new LineSeparatorPatternConverter();

  /**
   * Line separator.
   */
  private final String lineSep;

  /**
   * Private constructor.
   */
  private LineSeparatorPatternConverter() {
    super("Line Sep", "lineSep");
    lineSep = Constants.LINE_SEPARATOR;
  }

  /**
   * Obtains an instance of pattern converter.
   * @param options options, may be null.
   * @return instance of pattern converter.
   */
  public static LineSeparatorPatternConverter newInstance(final String[] options) {
    return INSTANCE;
  }

  /**
   * {@inheritDoc}
   */
  @Override
public void format(final LogEvent event, final StringBuilder toAppendTo) {
    toAppendTo.append(lineSep);
  }
}

@@ -1221,22 +1221,26 @@
 rter %7B%0A%0A
+  
   /**%0A
+  
    * Sin
@@ -1246,27 +1246,31 @@
 ngleton.%0A   
+  
 */%0A
+  
   private st
@@ -1320,20 +1320,16 @@
 STANCE =
-%0A   
  new Lin
@@ -1359,22 +1359,26 @@
 ter();%0A%0A
+  
   /**%0A
+  
    * Lin
@@ -1386,30 +1386,34 @@
  separator.%0A
+  
    */%0A
+  
   private fi
@@ -1433,22 +1433,26 @@
 neSep;%0A%0A
+  
   /**%0A
+  
    * Pri
@@ -1472,19 +1472,23 @@
 tor.%0A   
+  
 */%0A
+  
   privat
@@ -1519,24 +1519,28 @@
 nverter() %7B%0A
+    
     super(%22L
@@ -1561,16 +1561,20 @@
 eSep%22);%0A
+    
     line
@@ -1605,27 +1605,33 @@
 ARATOR;%0A
+  
   %7D%0A%0A  
+ 
+ 
 /**%0A
+  
    * Obt
@@ -1665,24 +1665,34 @@
  converter.%0A
+     * %0A  
    * @param 
@@ -1698,16 +1698,30 @@
  options
+%0A     *       
  options
@@ -1735,16 +1735,18 @@
 e null.%0A
+  
    * @re
@@ -1784,19 +1784,23 @@
 ter.%0A   
+  
 */%0A
+  
   public
@@ -1871,24 +1871,28 @@
  options) %7B%0A
+    
     return I
@@ -1904,19 +1904,25 @@
 CE;%0A
+  
   %7D%0A%0A
+  
   /**%0A
+  
    *
@@ -1936,22 +1936,26 @@
 ritDoc%7D%0A
+  
    */%0A
+  
   @Overr
@@ -1958,16 +1958,20 @@
 verride%0A
+    
 public v
@@ -2033,24 +2033,28 @@
 AppendTo) %7B%0A
+    
     toAppend
@@ -2073,14 +2073,16 @@
 neSep);%0A
+  
   %7D%0A%7D%0A

Fix indentation.