Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-770

Parse multiline values in INI files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.6
    • None
    • Format

    Description

      From my test it looks like multiline values in INI files are not supported by commons-configuration2. I need to parse files like this one : https://github.com/glottolog/glottolog/blob/master/languoids/tree/abin1243/md.ini, and if I access configuration entry like "glottolog" on line 19 I am getting an empty string since the values are on the following lines.
       
      ConfigParser in Python does support multiline values : https://docs.python.org/3/library/configparser.html (if they have one extra indentation compared to the line with the key).
       
      See this discussion on the mailing-list : https://mail-archives.apache.org/mod_mbox/commons-user/201911.mbox/%3C806464075.685871.1573878589303%40mail.yahoo.com%3E

      Attachments

        Activity

          People

            Unassigned Unassigned
            tfrancart Thomas Francart
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: