diff --git a/test4 b/test4 index 30d74d2..048862b 100644 --- a/test4 +++ b/test4 @@ -1 +1,59 @@ -test \ No newline at end of file +test +
{{.RowIdx}} | + {{range $j, $cell := $row.Cells}} + {{if not $cell}} ++ {{else if eq $cell.Type 2}} + | {{.LeftCell}} {{.RightCell}} | + {{else if eq $cell.Type 3}} +{{.RightCell}} | + {{else if eq $cell.Type 4}} +{{.LeftCell}} | + {{else if eq $cell.Type 5}} +{{.RightCell}} | + {{else if eq $cell.Type 6}} +{{.LeftCell}} {{.RightCell}} | + {{else}} +{{.RightCell}} | + {{end}} + {{end}} + {{else}} +{{if .RowIdx}}{{.RowIdx}}{{end}} | + {{range $j, $cell := $row.Cells}} + {{if not $cell}} ++ {{else if eq $cell.Type 2}} + | {{.LeftCell}} {{.RightCell}} | + {{else if eq $cell.Type 3}} +{{.RightCell}} | + {{else if eq $cell.Type 4}} +{{.LeftCell}} | + {{else if eq $cell.Type 5}} +{{.RightCell}} | + {{else if eq $cell.Type 6}} +{{.LeftCell}} {{.RightCell}} | + {{else}} +{{.RightCell}} | + {{end}} + {{end}} + {{end}} +
---|