From 235b548f594ae964756adba448a4e86a2251eb2d Mon Sep 17 00:00:00 2001 From: "c.lamboo" Date: Fri, 27 Oct 2023 15:28:43 +0200 Subject: [PATCH] Fix printing gcode on different lines CURA-10561 --- include/dulcificum.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/dulcificum.h b/include/dulcificum.h index e9c9d94..5d55c5e 100644 --- a/include/dulcificum.h +++ b/include/dulcificum.h @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -30,7 +31,7 @@ namespace dulcificum { return dulcificum::miracle_jtp::toJson(*command).dump(); }) - | ranges::views::join(",\n") | ranges::to(); + | ranges::views::join(ranges::views::c_str(",\n")) | ranges::to(); return fmt::format("[\n{}\n]", commands); }