Re: minor issue with highlighting URLs in plain text emal

Peter Bloomfield <[email protected]>
Newsgroups gmane.comp.gnome.apps.balsa
Message-ID <[email protected]>
On 07/03/2018 03:55:17 PM Tue, Jack via balsa-list wrote:
…
> It could be a valid URI with or without the period.  The question is which do you present to the user if the URI is not quoted in any way in the source, and the trailing period might be part of the URI or just ending punctuation?  If it's in quotes or angle brackets, I certainly would NOT drop the period.  However, if it's white space before the HTTP or HTTPS then I'd expect white space at the end, with the exception that I'd take any trailing punctuation mark as such, and not part of the URI itself.  Too bad you can't give the user the choice - but it would confuse far more folks than it would help.

I think that's a good heuristic. It will break some valid URIs, but it would evidently correct many more errors. Linkification really is a guess about something that could be helpful for the user, and removing trailing punctuation will be helpful more often than not!

Best,

Peter

_______________________________________________
balsa-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/balsa-list
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQS030wPRfNNA5alz3MfX9S1uSp09QUCWzvbgAAKCRAfX9S1uSp0
9QmGAJ4t9mlua3/I5hXF+TtQcs6Tr1yfxQCfb/vISQZZgCP/b2L0Ht+c3QdQWcs=
=I5Nb
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.