Hello fredvs,
you wrote on Thu, 12 Mar 2020 10:59:15 -0700 (MST):
> > I suggest,if you want, apply it to ALL the source code in the repo and
> > make one
> > commit that says trimming the whitespace. Done and dusted! ;-)
Should be done urgently. I also hate trailing invisible stuff.
> Ho, yes, it would be wonderful.
>
> But...
>
> Mse has **many** units, doing this via a editor will takes ages...
Do you use Windows (a manualizing tool) or Linux (an automating tool)?
If the latter, "sed" ist the tool of choice. You can use "find" to retrieve
all unit files in all subdirectories of the mse code tree, feed them to sed
and have that remove all the trailing whitespace in all files by issuing a
single, albeit complex, command.
The "sed" call might look somewhat like so:
"sed -i 's/[[:blank:]]*$//' <file name>"
where the "-i" tells sed to apply the expression within quotes "in place"
to the file, thus modifying it, the expression in single quotes is the
editing command that removes white space at the end of any line (blanks
and tabs) and the <file name> specifies the file to modify. If used in
conjunction with find, the characters "{}" have to be used as the <file
name>, as that's the marker telling "find" where to insert the names of
the files it found.
There are ways to achieve that with Windows as well, as there are
implementations of "sed" and even "find" for Windows also.
--
--
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
-----------------------------------------------------------
Mit freundlichen Grüßen, S. Schicktanz
-----------------------------------------------------------
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk