diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-03-07 14:51:44 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-03-07 14:51:44 +0100 |
commit | a1e71ac7b4ca7aabe42364dae71e7b7878b06078 (patch) | |
tree | a1465f79d25d1c3f6601ed5a13b0914ba2372252 /formats | |
parent | c7820bce5ba2b5c507710ee7636d9f58b30eb8c6 (diff) | |
download | clufter-a1e71ac7b4ca7aabe42364dae71e7b7878b06078.tar.gz clufter-a1e71ac7b4ca7aabe42364dae71e7b7878b06078.tar.xz clufter-a1e71ac7b4ca7aabe42364dae71e7b7878b06078.zip |
formats/simpleconfig: append trailing newline to bytestring form
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'formats')
-rw-r--r-- | formats/simpleconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/formats/simpleconfig.py b/formats/simpleconfig.py index 4bb970e..6b40d95 100644 --- a/formats/simpleconfig.py +++ b/formats/simpleconfig.py @@ -108,7 +108,7 @@ class simpleconfig(SimpleFormat): + l[len(l.split('#')) - 2:]) for x in xs if x for l in x.splitlines()) )(struct).replace('###', '').replace('##', indent) - ret = '\n'.join(ret.splitlines()[1:-1]) + ret = '\n'.join(ret.splitlines()[1:-1]) + '\n' return ret @SimpleFormat.producing('struct', protect=True) |