Commits

Shitiz Garg  committed 608caaa

Fix diff.hmtl

  • Participants
  • Parent commits 057a787

Comments (0)

Files changed (2)

File MoinMoin/apps/frontend/views.py

     rev_ids = [CURRENT]  # XXX TODO we need a reverse sorted list
     return render_template(item.diff_template,
                            item=item, item_name=item.name,
+                           diff_html=Markup(item._render_data_diff(oldrev, newrev)),
                            rev=item.rev,
                            first_rev_id=rev_ids[0],
                            last_rev_id=rev_ids[-1],

File MoinMoin/templates/diff.html

 <h1>{{ _("Diff for '%(item_name)s'", item_name=newrev.item.name) }}</h1>
 <br>
 {% endblock %}
-{{ Markup(item._render_data_diff(oldrev, newrev)) }}
+{{ diff_html }}
 {% endblock %}