diff options
author | Justin Luth <justin.luth@collabora.com> | 2024-06-17 13:26:14 -0400 |
---|---|---|
committer | Gabor Kelemen <gabor.kelemen.extern@allotropia.de> | 2024-06-24 10:12:32 +0200 |
commit | a9bdf3adf3292f6eff94f6c373c5336992c15ed5 (patch) | |
tree | 38a5eb9e0fe3a46129a9e555b7cf5c635ac51119 /i18npool/source/localedata/data/sr_CS.xml | |
parent | 160ef8e6c3161ba99ee72f2ab8be91a539b7dc0e (diff) |
found by sed -i -f ref.sed */*.yaml
--------------------ref.sed --------------------
{
N;
s#\([^\n]*\n\)\1#\1#g;
P;
D;
}
------------------------------------------------
meaning: by default it reads in one line from the file
then the N; command says "add a \n and read in the next line
which leaves a one-line pattern containing 2 lines separated by \n
then search for line1\n repeated \1
and replace with \1.
likely nothing has happened, so P; print up to the first \n (aka line1)
so that we don't lose that line
D; delete up to the first \n
so that it isn't in the pattern buffer any more,
and next search starts line2
and then repeat.
Change-Id: Ib5d38af77568f59f36083f5348762d852acaa3e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169047
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
Diffstat (limited to 'i18npool/source/localedata/data/sr_CS.xml')
0 files changed, 0 insertions, 0 deletions