@ -1205,6 +1206,7 @@ impl std::fmt::Display for Attr {
Self::DIM=>write!(f,"Dim"),
Self::ITALICS=>write!(f,"Italics"),
Self::UNDERLINE=>write!(f,"Underline"),
Self::UNDERCURL=>write!(f,"Undercurl"),
Self::BLINK=>write!(f,"Blink"),
Self::REVERSE=>write!(f,"Reverse"),
Self::HIDDEN=>write!(f,"Hidden"),
@ -1236,6 +1238,13 @@ impl std::fmt::Display for Attr {
ctr+=1;
Self::UNDERLINE.fmt(f)?;
}
ifcombination.intersects(Self::UNDERCURL){
ifctr>0{
write!(f,"|")?;
}
ctr+=1;
Self::UNDERCURL.fmt(f)?;
}
ifcombination.intersects(Self::BLINK){
ifctr>0{
write!(f,"|")?;
@ -1301,6 +1310,7 @@ impl Attr {
"Bold"=>Ok(Self::BOLD),
"Italics"=>Ok(Self::ITALICS),
"Underline"=>Ok(Self::UNDERLINE),
"Undercurl"=>Ok(Self::UNDERCURL),
"Blink"=>Ok(Self::BLINK),
"Reverse"=>Ok(Self::REVERSE),
"Hidden"=>Ok(Self::HIDDEN),
@ -1313,7 +1323,7 @@ impl Attr {
Ok(ret)
}
_=>Err(de::Error::custom(
r#"Text attribute value must either be a single attribute (eg "Bold") or a combination of attributes separated by "|" (eg "Bold|Underline"). Valid attributes are "Default", "Bold", "Italics", "Underline", "Blink", "Reverse" and "Hidden"."#,
r#"Text attribute value must either be a single attribute (eg "Bold") or a combination of attributes separated by "|" (eg "Bold|Underline"). Valid attributes are "Default", "Bold", "Italics", "Underline", "Undercurl", "Blink", "Reverse" and "Hidden"."#,