summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-16 01:00:20 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-16 01:00:20 -0300
commitd049298e48523ea7285837649e72d47abdfa3827 (patch)
treec4d98d8fa1e20460f72979fd9b2cc3d60a035018
parent8e6f8a00b6eb0c4dbadbc22f76e5709d830904a8 (diff)
downloadeeshow-d049298e48523ea7285837649e72d47abdfa3827.tar.gz
eeshow-d049298e48523ea7285837649e72d47abdfa3827.tar.bz2
eeshow-d049298e48523ea7285837649e72d47abdfa3827.zip
eeshow/lib-parse.c (decode_style): also recognize "Italic"
-rw-r--r--lib-parse.c2
-rw-r--r--text.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/lib-parse.c b/lib-parse.c
index 015b031..45b59a4 100644
--- a/lib-parse.c
+++ b/lib-parse.c
@@ -29,6 +29,8 @@ static enum text_style decode_style(const char *s)
{
if (!strcmp(s, "Normal"))
return text_normal;
+ if (!strcmp(s, "Italic"))
+ return text_italic;
assert(0);
}
diff --git a/text.h b/text.h
index 560a1a7..febca34 100644
--- a/text.h
+++ b/text.h
@@ -25,6 +25,7 @@ enum text_align {
enum text_style {
text_normal,
+ text_italic,
};
struct text {