docs(dehtml): document AddText variants

This commit is contained in:
link2xt
2023-06-22 20:00:43 +00:00
parent 1351f71632
commit 5fe94e8bce

View File

@@ -51,8 +51,13 @@ impl Dehtml {
#[derive(Debug, PartialEq, Clone, Copy)] #[derive(Debug, PartialEq, Clone, Copy)]
enum AddText { enum AddText {
/// Inside `<script>`, `<style>` and similar tags
/// which contents should not be displayed.
No, No,
YesRemoveLineEnds, YesRemoveLineEnds,
/// Inside `<pre>`.
YesPreserveLineEnds, YesPreserveLineEnds,
} }