From cd56be70bd7e45a0f84566c12937727babc6ff4f Mon Sep 17 00:00:00 2001 From: Koki Oyatsu Date: Wed, 11 Jul 2018 10:56:44 +0900 Subject: [PATCH] add column label spacing --- .gitignore | 1 + templates/dot_tables.tmpl | 2 +- templates_bindata.go | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 1244bce..95ad59a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ erd-go *.swp dist/**/* coverage.out +.DS_Store diff --git a/templates/dot_tables.tmpl b/templates/dot_tables.tmpl index 2b38e35..fc13650 100644 --- a/templates/dot_tables.tmpl +++ b/templates/dot_tables.tmpl @@ -23,7 +23,7 @@ {{.Title}} {{- if .ColumnAttributes.label -}} - [{{.ColumnAttributes.label}}] +  {{.ColumnAttributes.label}} {{- end -}} diff --git a/templates_bindata.go b/templates_bindata.go index 272c553..309d814 100644 --- a/templates_bindata.go +++ b/templates_bindata.go @@ -85,7 +85,7 @@ func templatesDotTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/dot.tmpl", size: 752, mode: os.FileMode(420), modTime: time.Unix(1516326893, 0)} + info := bindataFileInfo{name: "templates/dot.tmpl", size: 752, mode: os.FileMode(420), modTime: time.Unix(1531274133, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -105,12 +105,12 @@ func templatesDot_relationsTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/dot_relations.tmpl", size: 821, mode: os.FileMode(420), modTime: time.Unix(1516288980, 0)} + info := bindataFileInfo{name: "templates/dot_relations.tmpl", size: 821, mode: os.FileMode(420), modTime: time.Unix(1531274133, 0)} a := &asset{bytes: bytes, info: info} return a, nil } -var _templatesDot_tablesTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x93\x5f\x8b\xda\x40\x14\xc5\xdf\xfd\x14\x97\xcb\x3e\x6a\xe2\xb6\xb6\x0f\xed\x4c\x20\xff\xdc\x0d\xa4\x89\x64\x87\x16\xba\x2c\x25\x31\xa3\x84\x4e\x0d\xc4\xd9\x82\x4c\xe7\xbb\x97\x8c\x13\x6b\xac\x16\xea\x8b\x73\x8f\x77\xee\x3d\xfe\x4e\xa2\x54\xcd\x37\xcd\x8e\x03\xd6\xad\xfc\x26\xcb\x4a\xf0\x3d\x6a\x3d\x51\xaa\x2b\x77\x5b\x0e\x77\xf2\xfb\x14\xee\x24\x7c\xa0\xe0\x30\xf3\xab\xd6\x13\x00\xa5\x1c\xd6\x48\xc1\xb5\x86\x67\x51\x56\x5c\x50\x42\x98\x1f\xa4\xf1\x04\xcc\x27\xc8\x8b\x28\x2e\x28\xce\xd1\x0a\x61\x9c\xa6\x2b\x3f\x8a\x92\xec\xe1\x42\x7d\x5a\xf9\xe1\x51\x75\xde\x0d\xfa\x97\x24\x62\x8f\x14\xef\xdf\x2e\x06\xc5\x4f\x93\x87\x8c\x62\x18\x67\x2c\x2e\x06\xd1\xb3\xdf\x84\x15\xc3\xb1\x2f\xa2\x8b\x6e\xf8\x6c\xeb\x20\x67\x2c\xff\x84\xe7\xe3\x3d\xb2\xcc\x33\x06\xab\x3c\xc9\xd8\xec\x29\xf9\x1a\x53\xbc\x5f\x20\x2c\xfd\x30\xa6\xf8\xc8\xc5\x4f\x2e\x9b\x75\x09\x55\x2b\x6a\xf4\x48\xe0\xfd\xf9\xe3\xc4\x0d\x3c\xe2\xf6\xb7\x3d\xe2\xb2\xe8\xe4\xc5\x1d\xcc\x10\xd7\x10\x39\x16\x4a\xcd\xa0\xd9\x80\x13\xb6\xe2\xf5\xc7\x6e\x0f\x33\x83\x11\xe0\xd7\xb1\xf5\x9f\xec\xac\xfb\x34\x5e\xb2\xff\xc0\xb9\xb8\x02\x73\x30\xd9\xbb\xb1\xf9\xf6\xf1\xae\x4d\xbc\xd6\x9a\x35\x76\x9b\xaa\xf1\x71\x8d\xdb\x1b\x1c\xe1\x31\x68\x4e\x03\xc6\x00\x7c\x29\xbb\xa6\x7a\x95\x7c\xef\x98\xc7\xe7\xc4\xc3\x6e\x33\xc3\x8f\x21\xf8\x5d\x53\x0a\x48\x64\x29\x9a\x35\x8e\x17\xce\x11\xc2\x3c\xcd\x0b\x8a\xdb\x8e\x1f\xde\xcf\xd1\x83\x67\xa5\x6e\xac\xd0\xfa\xe5\x9a\x27\xbe\xab\x47\xcb\xaf\x67\x79\xea\xb5\x9d\x7f\x65\x6b\xc7\x8c\xc3\x36\x2f\xcc\x99\x8f\x6a\xbb\x6e\x45\xdb\xd9\x19\xd3\x4d\x23\x84\x11\x28\xf6\xdc\x6e\x35\xe3\xd4\xb4\xef\xe5\x41\x70\xda\xdf\xe1\xf5\xe5\x5a\x53\xbf\x7c\x9c\x9c\x4b\xe7\xe7\xdf\x01\x00\x00\xff\xff\xf5\xd1\xce\xba\xe6\x03\x00\x00") +var _templatesDot_tablesTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x93\x5f\x8b\x9b\x40\x14\xc5\xdf\xf3\x29\x2e\x97\xa5\x4f\x89\x66\xdb\xb4\x0f\xdd\x19\xc1\x7f\xd9\x15\xac\x06\x77\x68\xa1\xa5\x14\x8d\x93\x20\x9d\x6a\xd1\xd9\xc2\x32\xf5\xbb\x17\x27\x63\x1a\xd3\xa4\xb0\x79\xc9\xdc\x93\x3b\xf7\x9e\xfc\x8e\x2a\x55\xf2\x5d\x55\x73\xc0\xb2\x91\xdf\x64\x5e\x08\xde\x61\xdf\xcf\x94\x6a\xf3\x7a\xcf\xe1\x46\x7e\x9f\xc3\x8d\x84\xf7\x14\x2c\xa6\x7f\xed\xfb\x19\x80\x52\x16\xab\xa4\xe0\x7d\x0f\x5f\x44\x5e\x70\x41\x09\x61\xae\x17\x87\x33\xd0\x1f\x2f\xcd\x82\x30\xa3\xb8\x44\x23\xf8\x61\x1c\x6f\xdc\x20\x88\x92\xfb\x33\xf5\x71\xe3\xfa\x07\xd5\x7a\x3b\xea\x9f\xa2\x80\x3d\x50\xbc\x7d\xb3\x1a\x15\x37\x8e\xee\x13\x8a\x7e\x98\xb0\x30\x1b\x45\xc7\x7c\x13\x96\x8d\xc7\xa1\x08\xce\xba\xe1\xa3\xa9\xbd\x94\xb1\xf4\x03\x9e\x8e\x77\xc8\x3a\x4d\x18\x6c\xd2\x28\x61\x8b\xc7\xe8\x73\x48\xf1\x76\x85\xb0\x76\xfd\x90\xe2\x03\x17\xbf\xb8\xac\xb6\x39\x14\x8d\x28\xd1\x21\x9e\xf3\xf7\x8f\x13\xdb\x73\x88\x3d\xdc\x76\x88\xcd\x82\xa3\x17\x7b\x34\x43\x6c\x4d\xe4\x50\x28\xb5\x80\x6a\x07\x96\xdf\x88\xa7\x1f\x75\x07\x0b\x8d\x11\xe0\xf7\xa1\xf5\xbf\xec\x8c\xfb\x38\x5c\xb3\x17\xe0\x5c\x5d\x80\x39\x9a\x1c\xdc\x98\x7c\x87\x78\xb7\x3a\x5e\x63\xcd\x18\xbb\x4e\x55\xfb\xb8\xc4\xed\x35\x4e\xf0\x68\x34\xc7\x01\x53\x00\xae\x94\x6d\x55\x3c\x49\xde\x59\xfa\xf1\x39\xf2\x30\xdb\xf4\xf0\x43\x08\x6e\x5b\xe5\x02\x22\x99\x8b\x6a\x8b\xd3\x85\x4b\x04\x3f\x8d\xd3\x8c\xe2\xbe\xe5\xcf\xef\x96\xe8\xbc\xaa\x8b\xee\xe7\x9d\x52\x57\xd6\x5c\xb6\xc5\xeb\x72\xb2\xff\x72\x9c\xc7\x5e\xd3\xf9\x4f\xbc\x66\xcc\x34\x6f\xfd\xce\x9c\xd8\x28\xf6\xdb\x46\x34\xad\x99\x31\xdf\x55\x42\x68\x81\xe2\x80\xee\x5a\x33\xce\x75\x7b\x27\x9f\x05\xa7\xc3\x1d\x5e\x9e\xaf\xd5\xf5\xd7\xbb\xd9\xa9\x74\x7a\xfe\x13\x00\x00\xff\xff\xa8\x98\x28\xae\xe9\x03\x00\x00") func templatesDot_tablesTmplBytes() ([]byte, error) { return bindataRead( @@ -125,7 +125,7 @@ func templatesDot_tablesTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/dot_tables.tmpl", size: 998, mode: os.FileMode(420), modTime: time.Unix(1516327129, 0)} + info := bindataFileInfo{name: "templates/dot_tables.tmpl", size: 1001, mode: os.FileMode(420), modTime: time.Unix(1531274140, 0)} a := &asset{bytes: bytes, info: info} return a, nil }