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

Parse multiline values in INI files

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.6
    • Fix Version/s: None
    • Component/s: Format
    • Labels:

      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

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

              Dates

              • Created:
                Updated: