no trailing spaces in saved xschem files (there was one in version strings "v {...}"
This commit is contained in:
parent
77d76e1a8f
commit
9e9660c562
|
|
@ -1248,8 +1248,8 @@ static void write_xschem_file(FILE *fd)
|
|||
my_strdup2(1183, &xctx->version_string, subst_token(xctx->version_string, "version", NULL));
|
||||
my_strdup2(1184, &xctx->version_string, subst_token(xctx->version_string, "file_version", NULL));
|
||||
ptr = xctx->version_string;
|
||||
while(*ptr == ' ' || *ptr == '\t') ptr++; /* strip leading spaces */
|
||||
fprintf(fd, "v {xschem version=%s file_version=%s %s}\n", XSCHEM_VERSION, XSCHEM_FILE_VERSION, ptr);
|
||||
while(*ptr == ' ' || *ptr == '\t' || *ptr == '\n') ptr++; /* strip leading spaces */
|
||||
fprintf(fd, "v {xschem version=%s file_version=%s\n%s}\n", XSCHEM_VERSION, XSCHEM_FILE_VERSION, ptr);
|
||||
|
||||
|
||||
if(xctx->schvhdlprop && !xctx->schsymbolprop) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue