Merge 34185a43a7 into c2bec4c755
This commit is contained in:
commit
39ba0b111b
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
|||||||
build/
|
build/
|
||||||
/tags
|
/tags
|
||||||
/bazel-*
|
/bazel-*
|
||||||
|
cmake-build-debug/
|
||||||
|
.idea/
|
||||||
|
|||||||
@ -14,6 +14,7 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
#include <iomanip>
|
||||||
|
|
||||||
#include "yaml-cpp/binary.h"
|
#include "yaml-cpp/binary.h"
|
||||||
#include "yaml-cpp/dll.h"
|
#include "yaml-cpp/dll.h"
|
||||||
@ -179,7 +180,9 @@ inline Emitter& Emitter::WriteStreamable(T value) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!special) {
|
if (static_cast<float>(static_cast<int>(value)) == value){
|
||||||
|
stream << std::fixed << std::setprecision(1) << value;
|
||||||
|
}else if (!special) {
|
||||||
stream << value;
|
stream << value;
|
||||||
}
|
}
|
||||||
m_stream << stream.str();
|
m_stream << stream.str();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user