mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
scanner: stop adding trailing whitespace to copyright
Generated code was unconditionally adding a space to lines in comments for copyright blocks even if the line was blank. Updated to not add trailing whitespace for blank lines. Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
This commit is contained in:
parent
9a170b9834
commit
1cf175eba4
1 changed files with 2 additions and 1 deletions
|
|
@ -1141,8 +1141,9 @@ format_copyright(const char *copyright)
|
|||
}
|
||||
|
||||
if (copyright[i] == '\n' || copyright[i] == '\0') {
|
||||
printf("%s %.*s\n",
|
||||
printf("%s%s%.*s\n",
|
||||
i == 0 ? "/*" : " *",
|
||||
i > start ? " " : "",
|
||||
i - start, copyright + start);
|
||||
bol = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue