On 14/12/15 01:57, Jim Meyering wrote: > On Sun, Dec 13, 2015 at 12:21 PM, Pádraig Brady <[email protected]> wrote: >> maint: remove form feed characters from sources >> >> These are no longer useful and can impact viewing >> patches in some mail programs for example. >> >> * src/cksum.c: Remove ^L characters. >> * src/comm.c: Likewise. >> * src/kill.c Likewise. >> * src/ln.c Likewise. >> * src/nl.c Likewise. >> * src/pr.c Likewise. >> * src/ptx.c Likewise. >> * src/split.c Likewise. >> * src/tr.c Likewise. >> * src/tsort.c Likewise. >> * src/uniq.c Likewise. >> * src/wc.c Likewise. > > Great! Thank you. > Perhaps add a syntax-check rule too?
Not likely to be be reintroduced, but fair enough :) I used $'\f' in the rule below to avoid using a literal ^L, as it should be well supported by developer shells. +sc_prohibit-form-feed: + @prohibit=$$'\f' \ + in_vc_files='\.[chly]$$' \ + halt='Form Feed (^L) detected' \ + $(_sc_search_regexp) thanks, Pádraig.
