diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-05-22 15:26:11 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-05-22 15:26:11 +0300 |
commit | d1922aa3282b7bf0899316dc1ad865123b666c5a (patch) | |
tree | b213a1885892523246b9b02ea7c44b097a76f4bb | |
parent | b12000e6b136ed8445d60bd8439be78d09ffb280 (diff) | |
download | slog-d1922aa3282b7bf0899316dc1ad865123b666c5a.tar.gz |
Fix: formatting of long strings
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | slog-pretty | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -7,6 +7,8 @@ This file summarizes changes between releases of `slog`. Version 0.6+git, not yet released --------------------------------- +* Drop use of `CSafeDumper` in `slog-pretty`, for correctness. + Specifically, long strings were being formatted weirdly. Version 0.6, released 2018-05-03 --------------------------------- diff --git a/slog-pretty b/slog-pretty index 4660c00..bacff37 100755 --- a/slog-pretty +++ b/slog-pretty @@ -22,7 +22,7 @@ def dump(f): obj = json.loads(line.strip()) yaml.dump( obj, stream=sys.stdout, indent=4, default_flow_style=False, - explicit_start=True, explicit_end=True, Dumper=yaml.CSafeDumper) + explicit_start=True, explicit_end=True) if len(sys.argv) == 1: |