On 07/03/2017 02:09 PM, Jean-Marc Lasgouttes wrote:
> Le 03/07/17 à 19:58, Richard Heck a écrit :
>> These are the files that still have trailing whitespace:
>
> Makefile.am, *.m files and tex2lyx/tex2lyx.1in can be trimmed. *ui
> file probably too.

I left the *.ui files, since these are (typically) auto-generated, and
Qt Designer will do as it pleases.

>>
>> PS From src/:
>>     perl -pe 's/\s+\n$/\n/' $(find ./ -type f -name '*.cpp')
>> and similarly for other file types.
>
> What is the \n$ good for?

I guess I could have left that out. It's the \n in the replacement that
matters. You can imagine the chaos of my first attempt. I always forget
that perl treats \n as whitespace at the end of the line....

Richard

Reply via email to