/**
 * redpen: a text inspection tool
 * Copyright (C) 2014 Recruit Technologies Co., Ltd. and contributors
 * (see CONTRIBUTORS.md)
 *
 * Licensed 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.unigram.docvalidator.util;

/**
 * Format input error into a string message.
 */
public class PlainFormatter implements Formatter {

  @Override
  public String convertError(ValidationError error) {
    StringBuilder str = new StringBuilder();

    str.append("ValidationError[");
    str.append(error.getValidatorName());
    str.append("][");
    if (error.getFileName() != null && !"".equals(error.getFileName())) {
      str.append(error.getFileName()).append(" : ");
    }
    str.append(error.getLineNumber()).append(" (")
        .append(error.getMessage()).append(")]");
    if (error.getSentence() != null) {
      str.append(" at line: ").append(error.getSentence());
    }
    return str.toString();
  }

  @Override
  public String header() {
    return null;
  }

  @Override
  public String footer() {
    return null;
  }

}

@@ -1371,16 +1371,24 @@
 ntence()
+.content
 );%0A    %7D

fix bug. using Sentence.content