Comments (6)
I opened a PR. Please take a look. It's a bit different from what you suggested but I think we can avoid change in current use cases.
from peanutbutter.
@fluffynuts The old library works now. Thanks for the quick support!
from peanutbutter.
Typically, PB.INI trims your INI file; but I don't see a problem with adding an extra newline - is that all that's required?
from peanutbutter.
Yes. I did a manual test and this old library didn't load the INI file until I added a new line to the INI file trimmed by PB.INI. Can I make PB.INI not to trim the line at the bottom?
from peanutbutter.
not currently - you're welcome to open a PR - I don't think this would negatively affect any other use-case, and the PR should be fairly simple:
2 modifications (for the 2 Persist methods that actually do work - one goes to a file, the other pushes lines to a stream) and 2 tests that prove that they happen. There may be other tests which are broken by the change, but they shouldn't be hard to fix - trim the result of the "Act" block and they should all pass again. Alternatively, I can look at this tomorrow, perhaps.
from peanutbutter.
@AndrewKeepCoding 3.0.6 contains the changes from your PR. Thanks for contributing!
from peanutbutter.
Related Issues (20)
- Adding some README and documentations to explain INI HOT 1
- Servicepath can not be set // any documentation? HOT 3
- Feature: maintain order of sections and settings within file
- Quotes HOT 2
- CORS policy HOT 3
- semi-colon ini text value causes truncation HOT 21
- IniFile should not use ordinal Dictionary HOT 4
- ini Remove method leaves the key behind HOT 3
- Per-project documentation
- Switch build, pack & push to use `dotnet` HOT 1
- Project restructuring to simplify dev, especially multi-platform dev
- semi-colon ini text value causes truncation (2022) HOT 9
- SetValue return value HOT 1
- How to set encoding? HOT 1
- PeanutButter.INI: CommentDelimiter not respected when saving HOT 2
- PeanutButter.INI exception HOT 6
- PeanutButter.DuckTyping: Parameter count error when trying to invoke overloaded method HOT 7
- Update PeanutButter.EasyArgs to be AOT-friendly
- [PeanutButter.INI] - Not possible to persist ini file if there is a SectionSeparator and no section HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from peanutbutter.