[3167364] -- is not allowed in XML comments, thus rendering assimp_cmd's output malformed in some cases. Subtitute -- by ?-.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@902 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2011-02-10 16:58:44 +00:00
parent 692cf1f84a
commit 79eca6196d
1 changed files with 9 additions and 1 deletions

View File

@ -699,6 +699,14 @@ void WriteDump(const aiScene* scene, FILE* out, const char* src, const char* cmd
time_t tt = ::time(NULL);
tm* p = ::gmtime(&tt);
std::string c = cmd;
std::string::size_type s;
// https://sourceforge.net/tracker/?func=detail&aid=3167364&group_id=226462&atid=1067632
// -- not allowed in XML comments
while((s = c.find("--")) != std::string::npos) {
c[s] = '?';
}
aiString name;
// write header
@ -715,7 +723,7 @@ void WriteDump(const aiScene* scene, FILE* out, const char* src, const char* cmd
" \n\n"
"<Scene flags=\"%i\" postprocessing=\"%i\">\n",
aiGetVersionMajor(),aiGetVersionMinor(),aiGetVersionRevision(),src,cmd,asctime(p),
aiGetVersionMajor(),aiGetVersionMinor(),aiGetVersionRevision(),src,c.c_str(),asctime(p),
scene->mFlags,
0 /*globalImporter->GetEffectivePostProcessing()*/);