mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-16 08:25:09 -04:00
fixed a html escaping bug
This commit is contained in:
parent
907566c2e6
commit
41c5bdc549
@ -35,8 +35,8 @@ public class LineBreakerTest extends TestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testBreakLinesHTML() throws Exception {
|
public void testBreakLinesHTML() throws Exception {
|
||||||
assertEquals("this is a test string", new LineBreaker(60).toHTML().breakLines("this is a\n test string"));
|
assertEquals("<html>this is a test string</html>", new LineBreaker(60).toHTML().breakLines("this is a\n test string"));
|
||||||
assertEquals("<html>this is a<br>test string</html>", new LineBreaker(60).toHTML().preserveContainedLineBreaks().breakLines("this is a\n test string"));
|
assertEquals("<html>this is a<br>test string</html>", new LineBreaker(60).toHTML().preserveContainedLineBreaks().toHTML().breakLines("this is a\n test string"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user