diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-02-14 11:55:35 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-02-14 11:55:35 +0000 |
| commit | f21a0d92650c85d8cc12348e7167fd014b419e15 (patch) | |
| tree | 9ba1768da888eacb2f83c0f8edec2b7215daef80 /src/test | |
| parent | 3f2896045e54a254f8ee007c43d179ed750d78b9 (diff) | |
Convert tab to tab in text
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/java/org/zwobble/mammoth/tests/DocumentConverterTests.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/DocumentConverterTests.java b/src/test/java/org/zwobble/mammoth/tests/DocumentConverterTests.java index 0648d93..b14b917 100644 --- a/src/test/java/org/zwobble/mammoth/tests/DocumentConverterTests.java +++ b/src/test/java/org/zwobble/mammoth/tests/DocumentConverterTests.java @@ -82,6 +82,13 @@ public class DocumentConverterTests { } @Test + public void tabIsConvertedToTabInHtmlText() { + assertThat( + convertToHtml(Tab.TAB), + deepEquals(list(Html.text("\t")))); + } + + @Test public void hyperlinkWithHrefIsConvertedToAnchorTag() { assertThat( convertToHtml(Hyperlink.href("http://example.com", list(new Text("Hello")))), |
