redundant escaping

This commit is contained in:
Thibault Duplessis 2017-05-27 16:31:38 +02:00
parent a4ca1d3495
commit f361d77885

View file

@ -51,10 +51,7 @@ private[i18n] object Registry {
private def toKey(e: scala.xml.Node) = s""""${e.\("@name")}""""
private def escape(str: String) = {
if (str contains "\"\"\"") sys error s"Skipped translation: $str"
else escapeHtml4(str)
}
private def escape(str: String) = escapeHtml4(str)
private def render(locale: String, file: File) = {
val xml = XML.loadFile(file)