This makes no real difference, but now they match the URLs in the text
of posts. In the Python version both split at w, but now that I'm
delegating HTML processing to html2text, that splits overlong words at
the same width it wraps sensible lines to. So I have to either have
them inconsistent or change the media one.
w-1 is more 'Mono' anyway, let's be honest :-)
fn render_highlighted(&self, width: usize, _highlight: Option<Highlight>)
-> Vec<ColouredString>
{
- let mut lines = vec! { ColouredString::uniform(&self.url, 'M') };
+ let mut lines: Vec<_> = ColouredString::uniform(&self.url, 'M')
+ .split(width.saturating_sub(1)).map(|x| x.to_owned()).collect();
for para in &self.description {
lines.extend_from_slice(¶.render(width));
}