aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/zwobble/mammoth/Mammoth.java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-02-16 20:49:57 +0000
committerMichael Williamson <mike@zwobble.org>2016-02-16 20:49:57 +0000
commit87527240deb25cc9b62b8aa43c8121344fc103f7 (patch)
treea5b4fe839265ce0765570896f258ee8cecbe1d2e /src/main/java/org/zwobble/mammoth/Mammoth.java
parentf3273c7264efce77b804c7bfc1fcff32b408222a (diff)
Add stubbed collapsing of HTML nodes
Diffstat (limited to 'src/main/java/org/zwobble/mammoth/Mammoth.java')
-rw-r--r--src/main/java/org/zwobble/mammoth/Mammoth.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/zwobble/mammoth/Mammoth.java b/src/main/java/org/zwobble/mammoth/Mammoth.java
index 3f9eddb..d466bed 100644
--- a/src/main/java/org/zwobble/mammoth/Mammoth.java
+++ b/src/main/java/org/zwobble/mammoth/Mammoth.java
@@ -35,6 +35,7 @@ public class Mammoth {
return reader.readElement(documentXml)
.map(nodes -> DocumentConverter.convertToHtml(idPrefix, nodes))
.map(Html::stripEmpty)
+ .map(Html::collapse)
.map(Html::write);
} catch (IOException e) {
throw new UnsupportedOperationException("Should return a result of failure");