Wearable export improvements.
Add grid nick to default filename. Add grid nick and date to exported XML. Add inventory path, name and description of item to exported XML.
This commit is contained in:
@@ -2569,6 +2569,19 @@ std::string LLXMLNode::escapeXML(const std::string& xml)
|
||||
return out;
|
||||
}
|
||||
|
||||
// Replace '--' with '- -', see http://en.wikipedia.org/wiki/XML#Comments
|
||||
// static
|
||||
std::string LLXMLNode::commentEscape(std::string const& comment)
|
||||
{
|
||||
std::string result = comment;
|
||||
std::string::size_type off = std::string::npos;
|
||||
while ((off = result.rfind("--", off)) != std::string::npos)
|
||||
{
|
||||
result.replace(off, 2, "- -");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
void LLXMLNode::setStringValue(U32 length, const std::string *strings)
|
||||
{
|
||||
if (length == 0) return;
|
||||
|
||||
@@ -279,6 +279,8 @@ public:
|
||||
|
||||
// Escapes " (quot) ' (apos) & (amp) < (lt) > (gt)
|
||||
static std::string escapeXML(const std::string& xml);
|
||||
// Escapes -- (double-hyphen)
|
||||
static std::string commentEscape(std::string const& comment);
|
||||
|
||||
// Set the default node corresponding to this default node
|
||||
void setDefault(LLXMLNode *default_node);
|
||||
|
||||
Reference in New Issue
Block a user