From 5a065c16573aa66d77b91dfb11caf743468040ab Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Thu, 13 Jan 2022 10:06:27 +0100 Subject: [PATCH] =?UTF-8?q?Originally=20only=20'.temp=20125'=20had=20been?= =?UTF-8?q?=20accepted.=20There=20has=20not=20been=20any=20error=20message?= =?UTF-8?q?=20if=20'=3D'=20was=20used,=20the=20temperature=20just=20had=20?= =?UTF-8?q?been=20set=20to=200=C2=B0C.=20Now=20also=20'.temp=3D125'=20or?= =?UTF-8?q?=20.temp=3D'param'=20are=20accepted.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/inp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontend/inp.c b/src/frontend/inp.c index a089b19be..b4fa0ed14 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -1006,9 +1006,12 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile) curr_meas->nextcard = NULL; dd = prev_card; } - /* get temp from deck */ + /* get temp from deck .temp 125 or .temp=125 */ if (ciprefix(".temp", dd->line)) { s = skip_ws(dd->line + 5); + if (*s == '=') { + s = skip_ws(s + 1); + } if (temperature) { txfree(temperature); }