lib/tidy/tidyobj.rb in terrbear-tidy-1.1.4 vs lib/tidy/tidyobj.rb in terrbear-tidy-1.1.5

- old
+ new

@@ -36,22 +36,17 @@ end # Clean and Repair. # def clean(str) - `echo verify_doc >> /tidylog` verify_doc rc = -1 # Clean and repair the string. # - `echo parse_string >> /tidylog` rc = Tidylib.parse_string(@doc, str) # Parse the input - `echo clean_and_rep >> /tidylog` rc = Tidylib.clean_and_repair(@doc) if rc >= 0 # Tidy it up! - `echo opt_parse >> /tidylog` rc = (Tidylib.opt_parse_value(@doc, :force_output, true) == 1 ? rc : -1) if rc > 1 # If error, force output - `echo save_buffer >> /tidylog` rc = Tidylib.save_buffer(@doc, @outbuf.struct) if rc >= 0 # Pretty Print verify_severe(rc) # Save and clear output/errors. #