Tk Library Source Code

View Ticket
Login
Ticket UUID: 3025582
Title: comments lost, positions changing
Type: Bug Version: None
Submitter: m_hoffmann Created on: 2010-07-05 20:27:41
Subsystem: inifile Assigned To: afaupell
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2013-07-04 17:25:20
Resolution: Not Applicable Here Closed By:
    Closed on:
Description:
- when updating an ini file, comments, which are placed at the very top of the inifile are eventually placed elsewhere after update.
- a comment immediately following the last keyword in a section is dropped, regardless if it begins in column 1.
- The order of sections changes and there is no way to determine the original order.
- comments, which not begin in column one are entirely lost. I think in windows, leading blanks are ignored for comments (I'm not 100% sure, though).

INI files are human readable material, in which especially comments (and there position!) are very importand, as so does the order of entries in general.
There is a small chance that only my code is wrong. I would be very sorry if this is the case...
The code is the first try of a tool that updates an existing ini (old.ini) with new entries (specified in man.ini), and writes the result to new.ini.
User Comments: m_hoffmann added on 2010-07-06 03:27:41:

File Added - 379283: iniupd.zip

Attachments: