Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion mod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ std::string pyexec_for_string(std::string const& cmd) {
KERR << ex;
throw;
}
return kul::String::LINES(pc.outs())[0]; // DROP EOL
auto ret = kul::String::LINES(pc.outs())[0];
if(ret.back() == '\n') ret.pop_back();
if(ret.back() == '\r') ret.pop_back();
return ret;
}

class Python3Module : public maiken::Module {
Expand Down
Loading