Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whitespace getting trimmed from value #233

Open
WinThuLatt opened this issue Sep 24, 2021 · 0 comments
Open

Whitespace getting trimmed from value #233

WinThuLatt opened this issue Sep 24, 2021 · 0 comments

Comments

@WinThuLatt
Copy link

[sectioname]
prop1=
prop2=

For the example above, with the version installed 2.5.2, it trims the 5 white spaces of prop1 and 1 whitespace of prop2.
I am not able to find this TrimProperties bool when trying to set it from IniParserConfiguration.
https://github.com/rickyah/ini-parser/blob/d300241a75bec4dcabc0751c8690f3b12b3eaf43/src/IniParser/Configuration/IniParserConfiguration.cs

Sample code from button.

IniParserConfiguration iniparserConfiguration = new IniParserConfiguration();

        iniparserConfiguration.TrimProperties  << not available. 
        
        var parser = new FileIniDataParser().Parser.Configuration;

        var testIni = parser.ReadFile("test.ini");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant