lib/pakyow/presenter/composers/view.rb in pakyow-presenter-1.0.1 vs lib/pakyow/presenter/composers/view.rb in pakyow-presenter-1.0.2
- old
+ new
@@ -49,12 +49,15 @@
# We collapse built views down to significance that is considered "renderable". This is
# mostly an optimization, since it lets us collapse some nodes into single strings and
# reduce the number of operations needed for a render.
#
- view.object.collapse(
- *(StringDoc.significant_types.keys - UNRETAINED_SIGNIFICANCE)
- )
+ # FIXME: This breaks when a collapsed string doc is transformed. Once that's fixed, we
+ # can enable this code again. It's pretty low-priority and not worth fixing right now.
+ #
+ # view.object.collapse(
+ # *(StringDoc.significant_types.keys - UNRETAINED_SIGNIFICANCE)
+ # )
# Empty nodes are removed as another render-time optimization leading to fewer operations.
#
view.object.remove_empty_nodes