From 02bc314a54267e5482b6813c8c19598fec409e88 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Mon, 11 Feb 2019 23:11:08 +0100 Subject: [PATCH] Allow " around netnames for .plot and .print commands. This enables characters like - / + in netnames, e.g. .print tran v("/jk-flip-flop-1/q") --- src/frontend/inp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend/inp.c b/src/frontend/inp.c index 4140070c1..792f00745 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -669,7 +669,9 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile) /* lines .width, .four, .plot, .print, .save added to wl_first, removed from deck */ /* lines .op, .meas, .tf added to wl_first */ inp_casefix(s); /* s: first token from line */ - inp_casefix(dd->line); + /* Do not eliminate " around netnames, to allow '/' or '-' in netnames */ + if (!eq(s, ".plot") && !eq(s, ".print")) + inp_casefix(dd->line); if (eq(s, ".width") || ciprefix(".four", s) || eq(s, ".plot") ||