From 5d52cf303fb59a56c523facd38e868fe77fccc93 Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Fri, 28 Dec 2007 19:58:22 -0600 Subject: [PATCH] Conditional Use of New REXML Output Logic. Thanks to Sam Ruby for pointing out the problem. --- vendor/plugins/maruku/lib/maruku/output/s5/to_s5.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vendor/plugins/maruku/lib/maruku/output/s5/to_s5.rb b/vendor/plugins/maruku/lib/maruku/output/s5/to_s5.rb index ef0349d9..d2dd9f74 100644 --- a/vendor/plugins/maruku/lib/maruku/output/s5/to_s5.rb +++ b/vendor/plugins/maruku/lib/maruku/output/s5/to_s5.rb @@ -1,5 +1,13 @@ # This module groups all functions related to HTML export. module MaRuKu + +begin + require 'rexml/formatters/pretty' + require 'rexml/formatters/default' + $rexml_new_version = true +rescue LoadError + $rexml_new_version = false +end class MDDocument