Allow " around netnames for .plot and .print commands.

This enables characters like - / + in netnames, e.g.
.print tran v("/jk-flip-flop-1/q")
This commit is contained in:
Holger Vogt 2019-02-11 23:11:08 +01:00
parent 5b21caae98
commit 4f8fd19309
1 changed files with 3 additions and 1 deletions

View File

@ -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") ||