Skip to content

section being corrupted in the output #124

Description

@jgriffiths014

Description

I have an ini file with the following section:
[RunMdl:Parameters]
Model=$1
Result=$2
Keys=$3
Extras=$4
Environment=$5
MetaData=$6
DBB_XMLInput=$7
DBB_XMLOutput=$8

which gets correctly imported:

Image

but in the output that section is broken:
[RunMdl:Parameters]
$3 =

using this command: Export-Ini -InputObject $ini -Filepath "somepath" -encoding ascii
Doesn't matter which encoding i use, same issue. I'm adding a line to a completely different section[Configuration], so its not what I'm doing that that's causing this.

Steps To Reproduce

  1. import the file using import-ini
  2. add section using += $iniAdd
  3. export using export-ini
  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behaviors

I would expect this section to come out unmodified.

Screenshots

Your Environment

Psini v4, powershell v5.

Get-Module PSIni -ListAvailable | Select Name, Version
$PSVersionTable

Possible Solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions