2
0
Эх сурвалжийг харах

Move ',' in field seperator to previous line.

{
    x : ..,
    y : ..,
    z : ..
}

instead of:

{
    x : ..
    ,y : ..
    ,z : ..
}

(Another jshint et. al warning)
Luca Deltodesco 12 жил өмнө
parent
commit
e920e980e2
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      genjs.ml

+ 1 - 1
genjs.ml

@@ -244,7 +244,7 @@ let newline ctx =
 let newprop ctx =
 	match Buffer.nth ctx.buf (Buffer.length ctx.buf - 1) with
 	| '{' -> print ctx "\n%s" ctx.tabs
-	| _ -> print ctx "\n%s," ctx.tabs
+	| _ -> print ctx ",\n%s" ctx.tabs
 
 let semicolon ctx =
 	match Buffer.nth ctx.buf (Buffer.length ctx.buf - 1) with