fix spaces at end of line

This commit is contained in:
paul moore
2023-12-03 13:19:42 -08:00
parent 617eb0e065
commit b527549dd2
2 changed files with 3 additions and 4 deletions

View File

@@ -1132,7 +1132,7 @@ StrBuf MakeLineFromTokens (TokNode* first)
SB_AppendStr (&T, ival); SB_AppendStr (&T, ival);
} else if ((token_string = GetTokenString (token)) != NULL) { } else if ((token_string = GetTokenString (token)) != NULL) {
SB_AppendStr (&T, token_string); SB_AppendStr (&T, token_string);
} }
SB_Append (&S, &T); SB_Append (&S, &T);
if (token->Tok == TOK_SEP) { if (token->Tok == TOK_SEP) {
return S; return S;

View File

@@ -676,7 +676,7 @@ static void OptExpandMacros (const char* Opt attribute ((unused)),
const char* Arg attribute ((unused))) const char* Arg attribute ((unused)))
/* Expand macros in listing /* Expand macros in listing
** one -m means short listing ** one -m means short listing
** two means full listing ** two means full listing
*/ */
{ {
@@ -709,7 +709,6 @@ static void OneLine (void)
** and not from internally pushed input ** and not from internally pushed input
*/ */
if (!HavePushedInput () ) { if (!HavePushedInput () ) {
InitListingLine (); InitListingLine ();
} }
@@ -899,7 +898,7 @@ static void Assemble (void)
while (CurTok.Tok != TOK_EOF) { while (CurTok.Tok != TOK_EOF) {
OneLine (); OneLine ();
} }
} }