remove trailing spaces on some lines

This commit is contained in:
stefan schippers 2026-02-19 18:03:16 +01:00
parent 0e0b53e539
commit 629e0fa5af
4 changed files with 7 additions and 7 deletions

View File

@ -3858,10 +3858,10 @@ static void handle_key_press(int event, KeySym key, int state, int rstate, int m
xctx->semaphore = save; xctx->semaphore = save;
} }
#ifndef __unix__ #ifndef __unix__
else if(state == ShiftMask) { else if(state == ShiftMask) {
int save = xctx->semaphore; int save = xctx->semaphore;
if(xctx->semaphore >= 2) break; if(xctx->semaphore >= 2) break;
xctx->semaphore = 0; xctx->semaphore = 0;
tcleval("next_tab"); tcleval("next_tab");
xctx->semaphore = save; xctx->semaphore = save;
} }
@ -3892,7 +3892,7 @@ static void handle_key_press(int event, KeySym key, int state, int rstate, int m
} }
break; break;
#endif #endif
case XK_Right: case XK_Right:
if(state == ControlMask) { if(state == ControlMask) {
int save = xctx->semaphore; int save = xctx->semaphore;

View File

@ -4250,7 +4250,7 @@ void draw_graph(int i, int flags, Graph_ctx *gr, void *ct)
my_strdup2(_ALLOC_ID_, &express, ntok_copy); my_strdup2(_ALLOC_ID_, &express, ntok_copy);
} }
dbg(1, "express=|%s|\n", express); dbg(1, "express=|%s|\n", express);
match = strpbrk(express, " \n\t"); match = strpbrk(express, " \n\t");
if( match && (match == express || *(match - 1) != '\\')) { if( match && (match == express || *(match - 1) != '\\')) {
expression = 1; expression = 1;

View File

@ -604,9 +604,9 @@ char *dtoa_eng(double i, int precision)
else { i *= 1e18; suffix = 'a';} else { i *= 1e18; suffix = 'a';}
if(suffix) { if(suffix) {
/* can not use my_snprintf() here due to indirect precision */ /* can not use my_snprintf() here due to indirect precision */
if(suffix == 'M') if(suffix == 'M')
n = sprintf(s, "%.*gMEG", precision, i); n = sprintf(s, "%.*gMEG", precision, i);
else else
n = sprintf(s, "%.*g%c", precision, i, suffix); n = sprintf(s, "%.*g%c", precision, i, suffix);
} else { } else {
n = sprintf(s, "%.*g", precision, i); n = sprintf(s, "%.*g", precision, i);

View File

@ -1967,7 +1967,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
* Get attribute 'attr' of rectangle number 'num' on layer 'layer' * Get attribute 'attr' of rectangle number 'num' on layer 'layer'
* *
* getprop text num attr * getprop text num attr
* Get attribute 'attr' of text number 'num', 'num' can also be the name attribute * Get attribute 'attr' of text number 'num', 'num' can also be the name attribute
* of the text object * of the text object
* if 'attr' is 'txt_ptr' return the text string * if 'attr' is 'txt_ptr' return the text string
* *