https://codereview.appspot.com/573610048
Now that Werner has banned all tabs from mf files, initially replacing them by 8 spaces each, it's time for the second step:
lemzwerg 2020/02=29 17:23:39
We could later decide to reduce the indentation to two (or four) spaces – which I like much better. However, this would be a lot of work and is probably not worth the trouble.
mf/accidentals.mf (current) already used indentation for fet_begringroup [...] fet_endgroup`
fet_begingroup ("accidentals");
input feta-arrow;
input feta-sharps;
input feta-naturals;
input feta-flats;
input feta-parenthesis;
fet_endgroup ("accidentals");
mf/accidentals.mf (new) (reduced to, say, 2 characters)
fet_begingroup ("accidentals");
input feta-arrow;
input feta-sharps;
input feta-naturals;
input feta-flats;
input feta-parenthesis;
fet_endgroup ("accidentals");
But, in contrast to that, most of the times, there was no fet_begingroup [...] fet_endgroup indent at all, e.g.:
mf/feta-pedals.mf (current)
[...]
fet_begingroup ("pedal");
pedalpha = 40;
pedbeta = 25;
[...]
mf/feta-pedals.mf (new)
[...]
fet_begingroup ("pedal");
pedalpha = 40;
pedbeta = 25;
[...]
Out of the currentyl 201 *.mf files, 59 do not have any indentation and thus need not be changed.
The remaining 43 files will be re-formatted on semi-automatic.
The 13.6 METAFONT formatting rules still mention tabs. This should be changed and adapted, depending on the design descision taken and implemented here.
I favor two spaces.
And for
fet_begingroupI prefer the solution we currently have in the MF files: Iffet_endgroupis 'not too far away', apply indentation, otherwise don't.Splendid. Two spaces is my preference, too.
And no extra indent beween
fet_begingroupandfet_endgroup.Issue 5829: Re-indent all mf files
As a second step after having replaced all tabs by 8 character indentations,
these indentations will now be reduced to 2 characters.
"Tabs are used..." passage removed from
Contributor's Guide 13.6 METAFONT formatting rules.
https://codereview.appspot.com/573610048
Diff:
Torsten, Rietveld won't provide a diff for me to test if the diffs are too large - like this one.
You're going to have to attach a patch for me to test.
James, sorry I din't pay attention and overlooked the "too big" status.
Here you go with an exceptionally large patch:
Patch on countdown for March 13th
Oops, applied the patch too early, sorry.
Applied to staging as
commit c9debce76a75ab4c5d81fa96e2ac5f45615803b3
Author: Torsten Hämmerle torsten.haemmerle@web.de
Date: Sat Mar 7 08:42:48 2020 +0100