Stringify line values with spaces.
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 15 Mar 2020 16:38:40 +0000 (12:38 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 15 Mar 2020 16:38:40 +0000 (12:38 -0400)
src/FormView.tsx

index f559fd91795d5957665912436c91b67890880620..3ffc9a4731173707cedd21f657fd4eb566186b2f 100644 (file)
@@ -38,7 +38,7 @@ function Line(props: { tr, line }) {
   const { tr, line } = props;
   const value = createMemo(() => {
     try {
-      return JSON.stringify(line.value(tr));
+      return JSON.stringify(line.value(tr), null, 1);
     } catch (e) {
       return <span class={S.error} title={e.stack}>{e.message}</span>;
     }