mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-13 09:19:00 +08:00
Fix usage of quoted string io
This commit is contained in:
parent
adea0d90ab
commit
a829b0f98a
@ -726,7 +726,9 @@ Print::export_gcode(std::string outfile, bool quiet)
|
|||||||
this->config.setenv_();
|
this->config.setenv_();
|
||||||
for (std::string ppscript : this->config.post_process.values) {
|
for (std::string ppscript : this->config.post_process.values) {
|
||||||
#ifdef __cpp_lib_quoted_string_io
|
#ifdef __cpp_lib_quoted_string_io
|
||||||
ppscript += " " + std::quoted(outfile);
|
std::stringstream _tmp_string(ppscript);
|
||||||
|
_tmp_string << " " << std::quoted(outfile);
|
||||||
|
ppscript = _tmp_string.str();
|
||||||
#else
|
#else
|
||||||
boost::replace_all(ppscript, "\"", "\\\"");
|
boost::replace_all(ppscript, "\"", "\\\"");
|
||||||
ppscript += " \"" + outfile + "\"";
|
ppscript += " \"" + outfile + "\"";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user