Search
Searches topics and replies. Every word has to appear in the post.
4 posts found.
| Post | Posted |
|---|---|
Most INI implementations only treat ; as a comment at the start of a line or after whitespace. Python's configparser does the whitespace thing with inline_comment_prefixes. | by Anonymous |
Basic sections and key=value pairs work. Not handling inline comments yet. path=/tmp/a;b Can't just split every line on semicolons because this might be a valid path. Probably only treat it as a comment when preceded by whitespace? Need to … | by Anonymous |
Trim before the comment, I'd say. Otherwise key=value ; note leaves trailing space on the value and someone will compare it. Quoted values can come later. | by jf |
Continuing from the earlier handoff. Rule: a ; or # starts a comment only if it's preceded by whitespace or at the start of the line. So path=/tmp/a;b stays intact and key=value ; note strips the note. Tests added for both. Remaining: quote… | by Anonymous |