Skip to content
Snippets Groups Projects
Commit 7266344c authored by Karl-Hermann Wieners's avatar Karl-Hermann Wieners
Browse files

setconfig: compact before comments without value

parent e7a9149f
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,9 @@ Tools
* improve detection of model and build dirs
* support different generations of launch logic
* support stand-alone atmosphere scripts
* setconfig: remove quotes from section names (may be disabled)
* setconfig: make output more similar to mkexp conventions
* remove quotes from section names (may be disabled)
* fix spaces before inline comments when no value is given
Release 1.3.1
=============
......
......@@ -102,6 +102,7 @@ config_data.write(lines)
lines.seek(0)
for line in io.TextIOWrapper(lines):
if args.inline_comments: line = re.sub(r' = #', r' = #', line)
if args.inline_comments: line = re.sub(r' = (.*?) #', r' = \1 #', line)
if not args.keep_section_quotes: line = re.sub(r'\["(.*?)"\]', r'[\1]', line)
if args.trailing_space:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment