   end
 
   defp parse_xml! state do
-    #IO.puts state.script
+    IO.puts state.script
     try do
       state.script
         |> :erlsom.parse_sax(state, &sax_event_handler/2)

  end

  defp do_fix_line_syntax {line, no}, :fix_ifunless_opts do
    line2 = ~R/(^|\s)(\| +[\w\.\-]+[^\|]*?)\s+(if|unless)( +[\w\.\-:]+)?:\s+(.+?)\s*(?=(\s\| +[\w\.\-]+.*)|$)\6*/u
      |> Regex.replace(line, fn
        _, f1, f2, f3, "", f5, "" -> "#{f1}| #{f3} #{f5} do #{f2} | end"
        _, f1, f2, f3, "", f5, f6 -> "#{f1}| #{f3} #{f5} do #{f2} | else#{f6} | end"

  end

  defp fix_pipe_comments state do
    regex = ~R/(\s+)'(\|\s+[\w\.\-]+)/u
    res = Regex.replace regex, state.script, "\\1\\2"
    %{state | script: res}
  end
