From f1fdb5b2a73cccf3574922623ab51d13abea4750 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Mon, 12 Nov 2018 00:10:31 +0100 Subject: [PATCH] fix current measurement by i(xxx) in B sources: first step, allow spaces before 'i(' token. Current measurement for devices in series connection is still not possible. --- src/frontend/inpcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 367ca36cb..dace57339 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -6728,7 +6728,7 @@ inp_meas_current(struct card *deck) /* we have found it, but not (in error) at the beginning of the line */ if (s && s > v) { /* '{' if at beginning of expression, '=' possible in B-line */ - if (is_arith_char(s[-1]) || s[-1] == '{' || s[-1] == '=') { + if (is_arith_char(s[-1]) || s[-1] == '{' || s[-1] == '=' || isspace_c(s[-1])) { s += 2; if (*s == 'v') { // printf("i(v...) found in\n%s\n not converted!\n\n", curr_line);