Auto format files

This commit is contained in:
David
2017-01-29 13:20:18 +01:00
parent 733199cd15
commit 45a7c32d88
6 changed files with 60 additions and 41 deletions

View File

@@ -1,6 +1,6 @@
package j2html.attributes;
import static org.apache.commons.lang3.StringEscapeUtils.*;
import static org.apache.commons.lang3.StringEscapeUtils.escapeHtml4;
public class Attribute {
private String name;
@@ -17,9 +17,13 @@ public class Attribute {
}
public String render() {
if (name == null) { return ""; }
if (value == null) { return " "+name; }
return(" "+name+"=\""+value+"\"");
if (name == null) {
return "";
}
if (value == null) {
return " " + name;
}
return (" " + name + "=\"" + value + "\"");
}
@Override