summaryrefslogtreecommitdiff
path: root/glib/gen-unicode-tables.pl
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2022-09-05 13:01:35 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2022-09-15 03:43:04 +0200
commit0eb3a2440af0e977e3f75c926f41b3e623c443fb (patch)
tree0efd83ef0cce48045d0018c18ea21a58c9c8fed8 /glib/gen-unicode-tables.pl
parent65092de98f484df02b805ef33ceeef050ac649e9 (diff)
downloadglib-0eb3a2440af0e977e3f75c926f41b3e623c443fb.tar.gz
unicode: Avoid adding trailing spaces to tables definitions
Diffstat (limited to 'glib/gen-unicode-tables.pl')
-rwxr-xr-xglib/gen-unicode-tables.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/glib/gen-unicode-tables.pl b/glib/gen-unicode-tables.pl
index e742258ce..f4b5bab11 100755
--- a/glib/gen-unicode-tables.pl
+++ b/glib/gen-unicode-tables.pl
@@ -795,7 +795,7 @@ sub print_row
my ($column) = 4;
for ($i = $start; $i < $start + 256; ++$i)
{
- print OUT ", "
+ print OUT ","
if $i > $start;
my ($text) = $values[$i - $start];
if (length ($text) + $column + 2 > 78)
@@ -803,6 +803,10 @@ sub print_row
print OUT "\n ";
$column = 4;
}
+ else
+ {
+ print OUT " "
+ }
print OUT $text;
$column += length ($text) + 2;
}