Get a display string for the author.
(&self)
| 307 | |
| 308 | /// Get a display string for the author. |
| 309 | pub fn author_display(&self) -> String { |
| 310 | match &self.author_email { |
| 311 | Some(email) => format!("{} <{}>", self.author_name, email), |
| 312 | None => self.author_name.clone(), |
| 313 | } |
| 314 | } |
| 315 | |
| 316 | /// Get a short attribution string (e.g., "alice `[H]`" or "bob `[A:claude]`"). |
| 317 | pub fn short_attribution(&self) -> String { |