diff options
author | Jim Meyering <meyering@fb.com> | 2019-01-05 22:04:57 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2019-01-05 22:47:23 -0800 |
commit | badccffea49ddc26b72208366f00429cc7ffb9e1 (patch) | |
tree | 67540e209f66e920565f43c84cff6f3f7fed978a /NEWS | |
parent | 601eceb57cfb87ded594701acc401277c53ff837 (diff) | |
download | diffutils-badccffea49ddc26b72208366f00429cc7ffb9e1.tar.gz |
maint: convert all TABs to equivalent spaces in indentation
Using this file,
cat > leading-blank.exempt <<\EOF
(\.gitmodules|help2man|pre-commit)$
(?:^|\/)ChangeLog[^/]*$
(?:^|\/)(?:GNU)?[Mm]akefile[^/]*$
\.(?:am|mk)$
EOF
run the following command to convert all non-conforming leading white
space to be all spaces:
git ls-files \
| pcregrep -vf leading-blank.exempt \
| xargs pcregrep -l '^ *\t' \
| xargs perl -MText::Tabs -ni -le \
'$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
Since that changed old NEWS, I also ran "make update-NEWS-hash"
to update the old_NEWS_hash value in cfg.mk.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -343,12 +343,12 @@ User-visible changes in version 2.4: printed according to the printf specification. E.g. '%5df' prints the number of the first line in the group in the old file using the "%5d" format. - e: line number just before the group in old file; equals f - 1 - f: first line number in group in the old file - l: last line number in group in the old file - m: line number just after the group in old file; equals l + 1 - n: number of lines in group in the old file; equals l - f + 1 - E, F, L, M, N: likewise, for lines in the new file + e: line number just before the group in old file; equals f - 1 + f: first line number in group in the old file + l: last line number in group in the old file + m: line number just after the group in old file; equals l + 1 + n: number of lines in group in the old file; equals l - f + 1 + E, F, L, M, N: likewise, for lines in the new file %(A=B?T:E) If A equals B then T else E. A and B are each either a decimal constant or a single letter interpreted as above. T and E are |