Trim trailing spaces from key names when parsing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-03-02 02:41:25 +00:00
parent 75a22e8106
commit 17256d1ed0

View File

@@ -677,7 +677,7 @@ void wxFileConfig::Parse(wxTextBuffer& buffer, bool bLocal)
pEnd++;
}
wxString strKey(FilterInEntryName(wxString(pStart, pEnd)));
wxString strKey(FilterInEntryName(wxString(pStart, pEnd).Trim()));
// skip whitespace
while ( wxIsspace(*pEnd) )