From 47707d700c1676646fd3dd883cbbe43074d1fe8a Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 26 Jul 2016 18:35:14 -0300 Subject: [PATCH] sch2fig/lib.c (lib_parse): zero2 seems to be text style, ignore --- sch2fig/lib.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sch2fig/lib.c b/sch2fig/lib.c index fa45f06..24410c0 100644 --- a/sch2fig/lib.c +++ b/sch2fig/lib.c @@ -620,10 +620,13 @@ bool lib_parse(struct lib_ctx *ctx, const char *line) *tilde = ' '; } } + /* + * zero2 seems to be the font style: 0 = normal, 1 = bold ? + */ if (n == 12) { - if (zero1 || zero2) { - fprintf(stderr, "%u: only understand 0 x x\n", - ctx->lineno); + if (zero1) { + fprintf(stderr, "%u: only understand 0 x x\n" + "\"%s\"\n", ctx->lineno, line); exit(1); } obj->u.text.style = decode_style(style);