Parcourir la source

Rc file now again stored in pretty form

Leo il y a 10 ans
Parent
commit
f722e2a243
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 0 1
      TODO.md
  2. 2 1
      src/file_com.ml

+ 0 - 1
TODO.md

@@ -11,7 +11,6 @@
 
 ### Commands
  + Add command to modify configuration file
- + Pretty print rc file before writing it
 
 ### Configuration value
  + Make displaying command before launching configurable

+ 2 - 1
src/file_com.ml

@@ -46,7 +46,8 @@ let write (tmp_file:t) =
         (* Short name *)
         let name = Const.rc_file in
         (* Create string to be written *)
-        let data = Settings_j.string_of_rc_file tmp_file in
+        let data = (Settings_j.string_of_rc_file tmp_file
+        |> Yojson.Basic.prettify ~std:true) in
         Out_channel.write_all name ~data
 ;;