mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
init_template_by_style: collapse some case statements
After commit b66d2bec674f59016ca0708c20249421914b1d2b 'document: Unify text style -> screen attribute handling', the case statements for CSS_PT_FONT_WEIGHT, CSS_PT_FONT_STYLE, and CSS_PT_TEXT_DECORATION all have common code and therefore collapse nicely.
This commit is contained in:
parent
5191ed82a1
commit
f04bc1c7d1
@ -56,11 +56,7 @@ init_template_by_style(struct screen_char *template, struct document_options *op
|
||||
style.fg = property->value.color;
|
||||
break;
|
||||
case CSS_PT_FONT_WEIGHT:
|
||||
style.attr |= property->value.font_attribute.add;
|
||||
break;
|
||||
case CSS_PT_FONT_STYLE:
|
||||
style.attr |= property->value.font_attribute.add;
|
||||
break;
|
||||
case CSS_PT_TEXT_DECORATION:
|
||||
style.attr |= property->value.font_attribute.add;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user