diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-06-26 14:49:51 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-06-28 00:05:09 -0400 |
commit | c07f28d3f83678c4ad75086beca181a145ecf07d (patch) | |
tree | 7c94d3831e09f5efc7c2929560825092635e521e /pango/pango-markup.c | |
parent | d1a5fbff26079ab3271697a806a0aebaa5a75f03 (diff) | |
download | pango-c07f28d3f83678c4ad75086beca181a145ecf07d.tar.gz |
markup: Separate out all cases
No point in having a few attributes handled in
the default case. Just split them all by the first
char.
Diffstat (limited to 'pango/pango-markup.c')
-rw-r--r-- | pango/pango-markup.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pango/pango-markup.c b/pango/pango-markup.c index 9721595d..eb262980 100644 --- a/pango/pango-markup.c +++ b/pango/pango-markup.c @@ -1229,11 +1229,16 @@ span_parse_func (MarkupData *md G_GNUC_UNUSED, CHECK_ATTRIBUTE (underline); CHECK_ATTRIBUTE (underline_color); break; - default: + case 'r': CHECK_ATTRIBUTE (rise); + break; + case 'v': CHECK_ATTRIBUTE (variant); + break; + case 'w': CHECK_ATTRIBUTE (weight); break; + default:; } if (!found) |