monospaced font in code_shown.sym

This commit is contained in:
Stefan Frederik 2022-08-30 15:54:18 +02:00
parent adc4eb96c8
commit 5da8f777b2
5 changed files with 8 additions and 6 deletions

View File

@ -131,8 +131,10 @@ char *str_concat(const char *sep, ...)
}
/* first string is NULL; return a new allocation that is a simple \0, empty string to avoid a nasty corner case */
if (sum == 0)
if (sum == 0) {
va_end(ap);
return calloc(1, 1);
}
sl = strlen(sep);
sum += (v-1) * sl + 1; /* + a sep between each two strings and a terminator at the end */

View File

@ -21,6 +21,7 @@ static const char *get_entry_val(const arg_auto_set_t *as)
free(path);
return res;
}
return "unknown";
}
#define next_word(curr, next) \

View File

@ -1,4 +1,4 @@
v {xschem version=2.9.9 file_version=1.2 }
v {xschem version=3.1.0 file_version=1.2 }
G {}
K {type=netlist_commands
template="name=s1 only_toplevel=false value=blabla"
@ -11,4 +11,4 @@ E {}
L 4 0 -10 70 -10 {}
L 4 0 -10 0 10 {}
T {@name} 5 -30 0 0 0.3 0.3 {}
T {@value} 15 -5 0 0 0.3 0.3 {}
T {@value} 15 -5 0 0 0.3 0.3 {font=Monospace}

View File

@ -847,7 +847,6 @@ m=1
value=1
footprint=1206
device="ceramic capacitor"}
C {nmos4.sym} 540 -250 0 1 {name=m2 model=cmosn w=10u l=1u m=1 net_name=true}
C {launcher.sym} 1210 -70 0 0 {name=h3
descr="Graph Manual page"
url="https://xschem.sourceforge.io/stefan/xschem_man/graphs.html"}

View File

@ -1,4 +1,4 @@
v {xschem version=3.0.0 file_version=1.2 }
v {xschem version=3.1.0 file_version=1.2 }
G {}
K {}
V {}
@ -126,7 +126,7 @@ lab=CTRL1}
N 800 -870 800 -690 {
lab=CTRL1}
C {title.sym} 160 -40 0 0 {name=l1 author="Stefan Schippers" net_name=true}
C {code_shown.sym} 250 -250 0 0 {name=CONTROL value=".control
C {code_shown.sym} 190 -240 0 0 {name=CONTROL value=".control
save v(panel) v(sw) v(led) i(vpanel)
tran 1u 600u uic
write solar_panel.raw