Browse Source

bugfix fmt, demo updated

kpmy 10 years ago
parent
commit
6ac7504650
2 changed files with 14 additions and 2 deletions
  1. 11 1
      .gitignore
  2. 3 1
      mappers/fmt.go

+ 11 - 1
.gitignore

@@ -22,4 +22,14 @@ _testmain.go
 *.exe
 *.test
 *.prof
-*.odf
+*.odf
+
+.buildlog
+.DS_Store
+.idea
+.pub/
+build/
+packages
+pubspec.lock 
+/pubspec.lock
+gh-pages

+ 3 - 1
mappers/fmt.go

@@ -107,5 +107,7 @@ func (f *Formatter) SetDefaults(a ...attr.Attributes) {
 }
 
 func init() {
-	New = model.LeafFactory
+	New = func(n model.LeafName) model.Leaf {
+		return model.LeafFactory(n)
+	}
 }