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.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libbutl/manifest-rewriter.cxx') diff --git a/libbutl/manifest-rewriter.cxx b/libbutl/manifest-rewriter.cxx index 2be53f1..e5b4eae 100644 --- a/libbutl/manifest-rewriter.cxx +++ b/libbutl/manifest-rewriter.cxx @@ -41,8 +41,9 @@ using namespace std; namespace butl { manifest_rewriter:: - manifest_rewriter (path p) + manifest_rewriter (path p, bool long_lines) : path_ (move (p)), + long_lines_ (long_lines), fd_ (fdopen (path_, fdopen_mode::in | fdopen_mode::out | @@ -99,7 +100,7 @@ namespace butl { os << ' '; - manifest_serializer s (os, path_.string ()); + manifest_serializer s (os, path_.string (), long_lines_); s.write_value (nv.value, static_cast (nv.colon_pos - nv.start_pos + 2)); @@ -127,7 +128,7 @@ namespace butl ofdstream os (move (fd_)); os << '\n'; - manifest_serializer s (os, path_.string ()); + manifest_serializer s (os, path_.string (), long_lines_); s.write_name (nv.name); os << ':'; -- cgit v1.1