From 4f8fd19309f6081d21c6d0ec8de4ce85f6688f35 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 e55d3b978..5b79d1725 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") ||