chiark / gitweb /
Split media URLs at w-1 chars, not w.
authorSimon Tatham <anakin@pobox.com>
Fri, 5 Jan 2024 12:57:43 +0000 (12:57 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 5 Jan 2024 12:57:43 +0000 (12:57 +0000)
commitc312ae6fe782f20fbe58ddd23a3d6e672f475fe1
tree6cf048991d74e8762af50642a895e2e6a4ca853e
parenteaae90b7f4501500471a8c223951d27ed004dd02
Split media URLs at w-1 chars, not w.

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 :-)
src/text.rs