small bug in HTMLBuilders.scala
Verfasst: 12. Feb 2014 02:53
Hi,
just for clarification, should the given addElement method not only add one single newline character (/n) ? Otherwise I see some problems to get the same Sourcecode indentation as the given example html files.
Given one:
Correct one ?:
Greetings Dominic
just for clarification, should the given addElement method not only add one single newline character (/n) ? Otherwise I see some problems to get the same Sourcecode indentation as the given example html files.
Given one:
Code: Alles auswählen
def addElement(tag: String, attributes: String, content: String) {
addTag(tag, attributes)
code += content += "</" += tag += ">\n\n"
}
Code: Alles auswählen
def addElement(tag: String, attributes: String, content: String) {
addTag(tag, attributes)
code += content += "</" += tag += ">\n"
}