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:
parent
ba33ef232e
commit
ae681cb7fe
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user