Parse a simplified INI-style config: [section] headers, key = value lines, blank lines, and comment lines starting with ; (ignored). Reformat it, normalizing spacing.
Input: the raw config text, read until end of input.
Output: for each section in the order encountered, print [section] then each of its key=value pairs (no spaces around =), in the order encountered. Skip blank/comment lines.