mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
gen-unicode-tables: Strip whitespace off parsed fields
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
9770d7ba31
commit
cc350774bf
@ -337,6 +337,10 @@ while (<INPUT>)
|
|||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Trim leading and trailing whitespace
|
||||||
|
$fields[$CODE] =~ s/^\s+|\s+$//;
|
||||||
|
$fields[$BREAK_PROPERTY] =~ s/^\s+|\s+$//;
|
||||||
|
|
||||||
if ($fields[$CODE] =~ /([A-F0-9]{4,6})\.\.([A-F0-9]{4,6})/)
|
if ($fields[$CODE] =~ /([A-F0-9]{4,6})\.\.([A-F0-9]{4,6})/)
|
||||||
{
|
{
|
||||||
$start_code = hex ($1);
|
$start_code = hex ($1);
|
||||||
|
Loading…
Reference in New Issue
Block a user