terrbear-tidy 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/tidy/tidyobj.rb +0 -5
- metadata +1 -1
data/lib/tidy/tidyobj.rb
CHANGED
|
@@ -38,19 +38,14 @@ class Tidyobj
|
|
|
38
38
|
# Clean and Repair.
|
|
39
39
|
#
|
|
40
40
|
def clean(str)
|
|
41
|
-
`echo verify_doc >> /tidylog`
|
|
42
41
|
verify_doc
|
|
43
42
|
rc = -1
|
|
44
43
|
|
|
45
44
|
# Clean and repair the string.
|
|
46
45
|
#
|
|
47
|
-
`echo parse_string >> /tidylog`
|
|
48
46
|
rc = Tidylib.parse_string(@doc, str) # Parse the input
|
|
49
|
-
`echo clean_and_rep >> /tidylog`
|
|
50
47
|
rc = Tidylib.clean_and_repair(@doc) if rc >= 0 # Tidy it up!
|
|
51
|
-
`echo opt_parse >> /tidylog`
|
|
52
48
|
rc = (Tidylib.opt_parse_value(@doc, :force_output, true) == 1 ? rc : -1) if rc > 1 # If error, force output
|
|
53
|
-
`echo save_buffer >> /tidylog`
|
|
54
49
|
rc = Tidylib.save_buffer(@doc, @outbuf.struct) if rc >= 0 # Pretty Print
|
|
55
50
|
verify_severe(rc)
|
|
56
51
|
|