summaryrefslogtreecommitdiffstats
path: root/src/style.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-05-31 17:15:55 -0400
committerDan Davison <dandavison7@gmail.com>2020-05-31 17:15:55 -0400
commitbce5ccf6b40eaa3f6dff766f47984813e3b41ee4 (patch)
tree8e93238c0058f1502feaa4e82428ab6bd72e8a81 /src/style.rs
parentc293800e88289437225ac8e8da733e29898733ee (diff)
Allow --ELEMENT-decoration-style=none
Diffstat (limited to 'src/style.rs')
-rw-r--r--src/style.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/style.rs b/src/style.rs
index 22529bc5..a5981743 100644
--- a/src/style.rs
+++ b/src/style.rs
@@ -176,6 +176,7 @@ impl DecorationStyle {
Some("ul") => DecorationStyle::Underline(style),
Some("overline") => DecorationStyle::Overline(style),
Some("underoverline") => DecorationStyle::Underoverline(style),
+ Some("none") => DecorationStyle::NoDecoration,
Some("omit") => DecorationStyle::NoDecoration,
Some("plain") => DecorationStyle::NoDecoration,
// TODO: Exit with error if --thing-decoration-style supplied without a decoration type
@@ -296,6 +297,7 @@ fn extract_special_decoration_attribute(style_string: &str) -> (String, Option<S
|| token == "underline"
|| token == "overline"
|| token == "underoverline"
+ || token == "none"
|| token == "plain"
});
match special_attributes {