Skip to content

Ignoring continuation character #44

@mar1ged

Description

@mar1ged

I use go-ini for reading .ini files of a Windows application. Unfortunately the developer of that application decided to store pathnames with trailing backslashes:

[Directories]
SourceDir=C:\App\Source\
TargetDir=C:\App\Target\

When I read SourceDir I receive the value C:\App\SourceTargetDir=C:\App\Target\ because the \ gets treated as a continuation char.
Is it possible to tell the library not to handle the continuation char ? Unfortunately I can not change the ini files content because this breaks the application (which was not written by me and can not be changed by me)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions