|
----- Message from Paul Bailey <PaulBailey@xxxxxxxxxx> on Tue, 17 Febopen):
2015 09:41:56 +0000 -----
To:
Rational Developer for IBM i / Websphere Development Studio Client for
System i & iSeries <wdsci-l@xxxxxxxxxxxx>
Subject:
Re: [WDSCI-L] Source Opens with trailing spaces not trimmed
We also have that problem, and we don't use the IFS to store the
source. It seems to be caused when cut&paste is used to put code in...
although I am not 100% sure of that. I suspect that when you re-open
the file you are opening a cached version and it retains the spaces at
the end of lines (again, I am not 100% sure).
If I see a source member with that issue I just use the following
command on the LPEX command-line (press ESC when the source member is
findText all noEmphasis regularExpression replaceWith "$1" "(\\S)\\s+$"--
Copy that line (as is, including quotes) to the LPEX command-line,
press ENTER, and it will remove all spaces at the end of all lines
(right trim, aka %TRIMR to RPGLE devs).
Alternatively, use the CTRL-F panel, entering " +$" (without quotes)
into the find box, clearing the replace box (nothing must be in it),
tick regular expressions and wrap, untick the other boxes, and it does
the same TRIMR when you press the REPLACE ALL button.
There might be a need for an RFE, but I am not sure I would bother
voting for it as it doesn't bother me. Or some enterprising plugin
maker might find a way to help.
Paul.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.