Skip to content

Commit

Permalink
Fix conflict with master.
Browse files Browse the repository at this point in the history
  • Loading branch information
connormanning committed Sep 25, 2014
2 parents c299713 + 70c4114 commit 849a42e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/Metadata.cpp
Expand Up @@ -102,6 +102,7 @@ void MetadataNodeImpl::toJSON(std::ostream& o, int level) const

const std::string escaped_description(Utils::escapeJSON(m_descrip));
const std::string escaped_value(Utils::escapeJSON(m_value));
<<<<<<< HEAD

if (escaped_description.size())
{
Expand All @@ -127,6 +128,33 @@ void MetadataNodeImpl::toJSON(std::ostream& o, int level) const
o << std::endl;
}

=======

if (escaped_description.size())
{
o << indent << "\"description\":\"" << escaped_description << "\"";

if (m_type.size() || escaped_value.size() || m_subnodes.size())
{
o << ",";
}

o << std::endl;
}

if (m_type.size())
{
o << indent << "\"type\":\"" << m_type << "\"";

if (escaped_value.size() || m_subnodes.size())
{
o << ",";
}

o << std::endl;
}

>>>>>>> 70c4114b9d4fb5977f22ca5d9d88b4c13086706c
if (escaped_value.size())
{
o << indent << "\"value\":\"" << escaped_value << "\"";
Expand Down

0 comments on commit 849a42e

Please sign in to comment.