"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "go/pkg/printer/printer.go" between
Netspoc-6.025.tar.gz and Netspoc-6.026.tar.gz

About: NetSPoC is a network security policy compiler (using its own description language) to manage all the packet filter devices inside your network topology.

printer.go  (Netspoc-6.025):printer.go  (Netspoc-6.026)
skipping to change at line 579 skipping to change at line 579
for _, a := range l { for _, a := range l {
name := a.Name name := a.Name
if len := utfLen(name); len < max { if len := utfLen(name); len < max {
name += strings.Repeat(" ", max-len) name += strings.Repeat(" ", max-len)
} }
p.PreComment(a, "") p.PreComment(a, "")
p.print(name + getAttrList(a.Attributes) + p.TrailingComment(a, " }")) p.print(name + getAttrList(a.Attributes) + p.TrailingComment(a, " }"))
} }
} }
func Element(el ast.Element) string {
p := new(printer)
p.element("", el, "")
result := string(p.output)
result = strings.ReplaceAll(result, "\n", "")
return strings.ReplaceAll(result, " ", "")
}
func File(list []ast.Toplevel, src []byte) []byte { func File(list []ast.Toplevel, src []byte) []byte {
p := new(printer) p := new(printer)
p.init(src) p.init(src)
var simple []*ast.Network var simple []*ast.Network
for i, t := range list { for i, t := range list {
if isSimpleNet(t) { if isSimpleNet(t) {
simple = append(simple, t.(*ast.Network)) simple = append(simple, t.(*ast.Network))
continue continue
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)