Commits

Shitiz Garg committed 8d547ec

Cosmetic changes

Comments (0)

Files changed (2)

MoinMoin/items/__init__.py

 
 class Image(Binary):
     """ Base class for image/* """
-    def _render_data_diff(self, oldrev, newrev):
-        print self._internal_representation()
+
 item_registry.register(Image._factory, Type('image/*'))
 
 

MoinMoin/templates/atom.html

     </div>
 {% endmacro %}
 
-{% macro safe_style() %}
+{# A few style rules to ensure the content doesn't overflow #}
+{% macro atom_style() %}
     <style type="text/css">
         img {
             max-width: 100%;
             </td>
         </tr>
     </table>
-    {{ safe_style() }}
+    {{ atom_style() }}
 {%- elif get == 'binary' -%}
     {{ content }}
     <br />
             </td>
         </tr>
     </table>
-    {{ safe_style() }}
+    {{ atom_style() }}
 {%- endif -%}