bugfix in section render when context is array

This commit is contained in:
Daniel Sipka 2015-04-11 13:05:23 +02:00
parent 99677a30c4
commit 4c43b33291
3 changed files with 10 additions and 8 deletions

View file

@ -32,7 +32,8 @@ std::string visitor::render_section::operator()(const std::string& str) const {
std::string visitor::render_section::operator()(const array& arr) const {
std::ostringstream out;
for (auto& item: arr)
out << boost::apply_visitor(*this, item);
out << render_context(mstch::object{{".", item}}, context)
.render(section);
return out.str();
}