diff options
-rw-r--r-- | sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java b/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java index 5e4e2e512d8..66b721e718c 100644 --- a/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java +++ b/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java @@ -19,12 +19,12 @@ */ package org.sonar.colorizer; -import java.io.IOException; -import java.io.InputStream; - import org.apache.commons.io.IOUtils; import org.sonar.channel.CodeReader; +import java.io.IOException; +import java.io.InputStream; + public class HtmlDecorator extends Tokenizer { private static final String CSS_PATH = "/sonar-colorizer.css"; @@ -52,8 +52,7 @@ public class HtmlDecorator extends Tokenizer { if (options.getTableId() != null) { sb.append(options.getTableId()); } - sb.append("\"><tbody>"); - sb.append("<tr id=\"" + lineId++ + "\"><td><pre>"); + sb.append("\"><tbody><tr id=\"").append(lineId++).append("\"><td><pre>"); return sb.toString(); } |