1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-02-17 07:30:16 -05:00

Added test for preserve spaces at first of line

This commit is contained in:
Koji Arai 2013-05-09 22:11:05 +09:00
parent ba33ef232e
commit ae681cb7fe

View File

@ -133,4 +133,19 @@ public class HtmlConverterTest extends TestCase {
e.printStackTrace();
}
}
public void testPreserveSpacesAtFirst() {
String message = "foo\n"
+ " bar\n"
+ " baz\n"
+ "\n";
String result = HtmlConverter.textToHtml(message);
writeToFile(result);
assertEquals("<pre class=\"k9mail\">"
+ "foo<br />"
+ " bar<br />"
+ " baz<br />"
+ "<br />"
+ "</pre>", result);
}
}