mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
BUG: revert doc changes since VS7 cannot compile them, will implement them in a different manner
This commit is contained in:
@@ -33,13 +33,13 @@ static void cmDocumentationPrintHTMLChar(std::ostream& os, char c)
|
||||
// Use an escape sequence if necessary.
|
||||
static cmDocumentationEntry escapes[] =
|
||||
{
|
||||
{"<", "<", ""},
|
||||
{">", ">", ""},
|
||||
{"&", "&", ""},
|
||||
{"\n", "<br>", ""},
|
||||
{"","",""}
|
||||
{"<", "<", 0},
|
||||
{">", ">", 0},
|
||||
{"&", "&", 0},
|
||||
{"\n", "<br>", 0},
|
||||
{0,0,0}
|
||||
};
|
||||
for(const cmDocumentationEntry* op = escapes; op->name.size(); ++op)
|
||||
for(const cmDocumentationEntry* op = escapes; op->name; ++op)
|
||||
{
|
||||
if(op->name[0] == c)
|
||||
{
|
||||
@@ -97,25 +97,25 @@ void cmDocumentationFormatterHTML::PrintSection(std::ostream& os,
|
||||
os << "<h2>" << name << "</h2>\n";
|
||||
}
|
||||
if(!section) { return; }
|
||||
for(const cmDocumentationEntry* op = section; op->brief.size();)
|
||||
for(const cmDocumentationEntry* op = section; op->brief;)
|
||||
{
|
||||
if(op->name.size())
|
||||
if(op->name)
|
||||
{
|
||||
os << "<ul>\n";
|
||||
for(;op->name.size();++op)
|
||||
for(;op->name;++op)
|
||||
{
|
||||
os << " <li>\n";
|
||||
if(op->name[0])
|
||||
{
|
||||
os << " <b><code>";
|
||||
this->PrintHTMLEscapes(os, op->name.c_str());
|
||||
this->PrintHTMLEscapes(os, op->name);
|
||||
os << "</code></b>: ";
|
||||
}
|
||||
this->PrintHTMLEscapes(os, op->brief.c_str());
|
||||
if(op->full.size())
|
||||
this->PrintHTMLEscapes(os, op->brief);
|
||||
if(op->full)
|
||||
{
|
||||
os << "<br>\n ";
|
||||
this->PrintFormatted(os, op->full.c_str());
|
||||
this->PrintFormatted(os, op->full);
|
||||
}
|
||||
os << "\n";
|
||||
os << " </li>\n";
|
||||
@@ -124,7 +124,7 @@ void cmDocumentationFormatterHTML::PrintSection(std::ostream& os,
|
||||
}
|
||||
else
|
||||
{
|
||||
this->PrintFormatted(os, op->brief.c_str());
|
||||
this->PrintFormatted(os, op->brief);
|
||||
os << "\n";
|
||||
++op;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user