printer/plainprinter.go
changeset 207 56afbe03a7d4
parent 206 102b34bb2c28
child 210 94be15243195
equal deleted inserted replaced
206:102b34bb2c28 207:56afbe03a7d4
   181 	indentedPrint(w, indent, false, false, "Following count", "%d", a.FollowingCount)
   181 	indentedPrint(w, indent, false, false, "Following count", "%d", a.FollowingCount)
   182 	if a.Locked {
   182 	if a.Locked {
   183 		indentedPrint(w, indent, false, false, "Locked", "%v", a.Locked)
   183 		indentedPrint(w, indent, false, false, "Locked", "%v", a.Locked)
   184 	}
   184 	}
   185 	indentedPrint(w, indent, false, true, "User note", "%s", html2string(a.Note)) // XXX too long?
   185 	indentedPrint(w, indent, false, true, "User note", "%s", html2string(a.Note)) // XXX too long?
       
   186 	if a.Moved != nil {
       
   187 		m := a.Moved
       
   188 		indentedPrint(w, indent+p.Indent, true, false, "Moved to account ID", "%d (%s)", m.ID, m.Username)
       
   189 		indentedPrint(w, indent+p.Indent, false, false, "New user ID", "%s", m.Acct)
       
   190 		indentedPrint(w, indent+p.Indent, false, false, "New display name", "%s", m.DisplayName)
       
   191 	}
   186 	return nil
   192 	return nil
   187 }
   193 }
   188 
   194 
   189 func (p *PlainPrinter) plainPrintAttachment(a *madon.Attachment, w io.Writer, indent string) error {
   195 func (p *PlainPrinter) plainPrintAttachment(a *madon.Attachment, w io.Writer, indent string) error {
   190 	indentedPrint(w, indent, true, false, "Attachment ID", "%d", a.ID)
   196 	indentedPrint(w, indent, true, false, "Attachment ID", "%d", a.ID)