These are not needed in any way, so could (should) be removed. For example with "sed -i -e 's/ *$//'".
Examples (found with "grep -r -c -l -e ' *$' "): contrib/chem/chem.am contrib/eqn2graph/eqn2graph.sh contrib/glilypond/ChangeLog.0x contrib/grap2graph/grap2graph.sh contrib/mm/ChangeLog contrib/pic2graph/pic2graph.sh doc/automake.mom doc/grnexmpl.g doc/groff.css doc/meintro.me.in doc/txi-en.tex font/devdvi/generate/texsy.map font/devdvi/generate/texex.map font/devlbp/DESC.in font/devps/symbolsl.ps font/devps/symbol.afm font/devps/zapfdr.afm font/devps/prologue.ps m4/groff.m4 src/devices/grohtml/html-text.cpp src/devices/grohtml/html-table.cpp src/devices/grohtml/html.h src/devices/grohtml/grohtml.am src/devices/grops/psfig.diff src/devices/grops/ps.cpp src/devices/xditview/Dvi.c src/devices/xditview/lex.c src/devices/xditview/device.c src/devices/xditview/draw.c src/devices/xditview/xditview.c src/devices/xditview/parse.c src/devices/xditview/font.c src/devices/xditview/DviP.h src/devices/xditview/ChangeLog src/devices/grolbp/lbp.h src/devices/grolbp/lbp.cpp src/devices/grodvi/dvi.cpp src/include/printer.h src/include/cset.h src/include/config.hin~ src/include/config.hin src/libs/libbib/index.cpp src/libs/libbib/linear.cpp src/libs/libgroff/quotearg.c src/libs/libgroff/geometry.cpp src/libs/libgroff/symbol.cpp src/libs/libgroff/strtol.c src/libs/libxutil/XFontName.c src/libs/libdriver/printer.cpp src/preproc/tbl/main.cpp src/preproc/html/pre-html.h src/preproc/pic/tex.cpp src/preproc/pic/object.cpp src/preproc/pic/pic.ypp src/preproc/pic/lex.cpp src/preproc/pic/pic.h src/preproc/pic/main.cpp src/preproc/eqn/list.cpp src/preproc/eqn/text.cpp src/preproc/eqn/delim.cpp src/preproc/eqn/other.cpp src/preproc/eqn/lex.cpp src/preproc/eqn/neqn.sh src/preproc/refer/token.cpp src/preproc/refer/label.ypp src/preproc/refer/ref.cpp src/roff/troff/column.cpp src/roff/troff/env.h src/utils/pfbtops/pfbtops.c src/utils/addftinfo/guess.h src/utils/indxbib/indxbib.cpp src/utils/afmtodit/afmtodit.pl tmac/hyphen.fr tmac/TESTING-HINTS tmac/www.tmac.in