187 indentedPrint(w, indent, false, true, "Image", "%s", c.Image) |
187 indentedPrint(w, indent, false, true, "Image", "%s", c.Image) |
188 return nil |
188 return nil |
189 } |
189 } |
190 |
190 |
191 func (p *PlainPrinter) plainPrintContext(c *madon.Context, w io.Writer, indent string) error { |
191 func (p *PlainPrinter) plainPrintContext(c *madon.Context, w io.Writer, indent string) error { |
192 indentedPrint(w, indent, true, false, "Context", "%d relative(s)", len(c.Ancestors)+len(c.Descendents)) |
192 indentedPrint(w, indent, true, false, "Context", "%d relative(s)", len(c.Ancestors)+len(c.Descendants)) |
193 if len(c.Ancestors) > 0 { |
193 if len(c.Ancestors) > 0 { |
194 indentedPrint(w, indent, false, false, "Ancestors", "") |
194 indentedPrint(w, indent, false, false, "Ancestors", "") |
195 p.PrintObj(c.Ancestors, w, indent+p.Indent) |
195 p.PrintObj(c.Ancestors, w, indent+p.Indent) |
196 } |
196 } |
197 if len(c.Descendents) > 0 { |
197 if len(c.Descendants) > 0 { |
198 indentedPrint(w, indent, false, false, "Descendents", "") |
198 indentedPrint(w, indent, false, false, "Descendants", "") |
199 p.PrintObj(c.Descendents, w, indent+p.Indent) |
199 p.PrintObj(c.Descendants, w, indent+p.Indent) |
200 } |
200 } |
201 return nil |
201 return nil |
202 } |
202 } |
203 |
203 |
204 func (p *PlainPrinter) plainPrintInstance(i *madon.Instance, w io.Writer, indent string) error { |
204 func (p *PlainPrinter) plainPrintInstance(i *madon.Instance, w io.Writer, indent string) error { |