Skip to content

Commit

Permalink
Fix printing gcode on different lines
Browse files Browse the repository at this point in the history
CURA-10561
  • Loading branch information
casperlamboo committed Oct 27, 2023
1 parent 39291fe commit 235b548
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/dulcificum.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <range/v3/to_container.hpp>
#include <range/v3/view/join.hpp>
#include <range/v3/view/transform.hpp>
#include <range/v3/view/c_str.hpp>

#include <dulcificum/gcode/gcode_to_command.h>
#include <dulcificum/gcode/parse.h>
Expand All @@ -30,7 +31,7 @@ namespace dulcificum
{
return dulcificum::miracle_jtp::toJson(*command).dump();
})
| ranges::views::join(",\n") | ranges::to<std::string>();
| ranges::views::join(ranges::views::c_str(",\n")) | ranges::to<std::string>();
return fmt::format("[\n{}\n]", commands);
}

Expand Down

0 comments on commit 235b548

Please sign in to comment.