spaces around '=' are not needed any more in config files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2413 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -341,7 +341,7 @@ void wxFileConfig::Parse(wxTextFile& file, bool bLocal)
|
|||||||
}
|
}
|
||||||
else { // a key
|
else { // a key
|
||||||
const wxChar *pEnd = pStart;
|
const wxChar *pEnd = pStart;
|
||||||
while ( !wxIsspace(*pEnd) ) {
|
while ( *pEnd != _T('=') && !wxIsspace(*pEnd) ) {
|
||||||
if ( *pEnd == _T('\\') ) {
|
if ( *pEnd == _T('\\') ) {
|
||||||
// next character may be space or not - still take it because it's
|
// next character may be space or not - still take it because it's
|
||||||
// quoted
|
// quoted
|
||||||
@@ -1277,7 +1277,7 @@ void ConfigEntry::SetValue(const wxString& strValue, bool bUser)
|
|||||||
if ( bUser ) {
|
if ( bUser ) {
|
||||||
wxString strVal = FilterOutValue(strValue);
|
wxString strVal = FilterOutValue(strValue);
|
||||||
wxString strLine;
|
wxString strLine;
|
||||||
strLine << FilterOutEntryName(m_strName) << _T(" = ") << strVal;
|
strLine << FilterOutEntryName(m_strName) << _T('=') << strVal;
|
||||||
|
|
||||||
if ( m_pLine != NULL ) {
|
if ( m_pLine != NULL ) {
|
||||||
// entry was read from the local config file, just modify the line
|
// entry was read from the local config file, just modify the line
|
||||||
|
Reference in New Issue
Block a user