diff options
Diffstat (limited to 'mystringlistunit.pas')
-rw-r--r-- | mystringlistunit.pas | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mystringlistunit.pas b/mystringlistunit.pas index 79e82f9..b666f81 100644 --- a/mystringlistunit.pas +++ b/mystringlistunit.pas @@ -112,12 +112,15 @@ procedure tMyStringlist.loadFromResource(const s: ansiString); var st: tResourceStream; buf: ansistring; + i: longint; begin st:=tResourceStream.create(hInstance,s,RT_RCDATA); setlength(buf,st.size); st.readBuffer(buf[1],length(buf)); st.free; text:=buf; + for i:=0 to count-1 do + self[i]:=trim(self[i]); end; procedure tMyStringlist.saveToGz(const s: ansiString); |