mirror of
https://github.com/systemd/systemd.git
synced 2025-03-02 12:58:35 +03:00
format-table: never try to reuse cells that have color/url/uppercase set
The table cell reusing code is supposed to be an internal memory optimization, and not more. This means behaviour should be the same as if we wouldn't reuse cells.
This commit is contained in:
parent
9969b54279
commit
94a80afed4
@ -270,6 +270,14 @@ static bool table_data_matches(
|
||||
if (d->ellipsize_percent != ellipsize_percent)
|
||||
return false;
|
||||
|
||||
/* If a color/url/uppercase flag is set, refuse to merge */
|
||||
if (d->color)
|
||||
return false;
|
||||
if (d->url)
|
||||
return false;
|
||||
if (d->uppercase)
|
||||
return false;
|
||||
|
||||
k = table_data_size(type, data);
|
||||
l = table_data_size(d->type, d->data);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user