From a16982956c5e87d9b2f238522d902df177ece98e Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 6 Apr 2019 23:47:48 +0300 Subject: Add support for manifest_serializer long lines mode --- libbutl/manifest-rewriter.mxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libbutl/manifest-rewriter.mxx') diff --git a/libbutl/manifest-rewriter.mxx b/libbutl/manifest-rewriter.mxx index 6cba682..8ad22b3 100644 --- a/libbutl/manifest-rewriter.mxx +++ b/libbutl/manifest-rewriter.mxx @@ -50,7 +50,10 @@ LIBBUTL_MODEXPORT namespace butl class LIBBUTL_SYMEXPORT manifest_rewriter { public: - manifest_rewriter (path); + // Unless long_lines is true, break lines in values (see + // manifest_serializer for details). + // + manifest_rewriter (path, bool long_lines = false); // Replace the existing value at the specified position (specifically, // between colon_pos and end_pos) with the specified new value. The new @@ -70,6 +73,7 @@ LIBBUTL_MODEXPORT namespace butl private: path path_; + bool long_lines_; auto_fd fd_; }; } -- cgit v1.1