inpcom.c, command gnuplot: no lower case in xlabel, ylabel, title

This commit is contained in:
h_vogt 2016-12-13 23:15:42 +01:00
parent 0b258414a4
commit 8781c52213
1 changed files with 2 additions and 1 deletions

View File

@ -880,6 +880,7 @@ inp_read(FILE *fp, int call_depth, char *dir_name, bool comfile, bool intfile)
!ciprefix("source", buffer) &&
!ciprefix("load", buffer) &&
!ciprefix("plot", buffer) &&
!ciprefix("gnuplot", buffer) &&
!ciprefix("hardcopy", buffer) &&
!ciprefix("setcf", buffer)
)
@ -887,7 +888,7 @@ inp_read(FILE *fp, int call_depth, char *dir_name, bool comfile, bool intfile)
/* lower case for all other lines */
for (s = buffer; *s && (*s != '\n'); s++)
*s = tolower_c(*s);
} else if (ciprefix("plot", buffer) || ciprefix("hardcopy", buffer)) {
} else if (ciprefix("plot", buffer) || ciprefix("gnuplot", buffer) ||ciprefix("hardcopy", buffer)) {
/* lower case excluded for tokens following title, xlabel, ylabel.
* tokens may contain spaces, then they have to be enclosed in quotes.
* keywords and tokens have to be separated by spaces. */