-
Notifications
You must be signed in to change notification settings - Fork 123
Avoid breakage of URLs in plain text representations of quarterly reports #530
Comments
Side note, archive copies such as https://lists.freebsd.org/archives/freebsd-announce/2022-August/000035.html are affected by FreeBSD bugs: |
@sergio-carlavilla @Paeps @bapt I guess, use of angle brackets can (or should) prevent breakage. The test e-mail archived at https://lists.freebsd.org/archives/freebsd-test/2022-October/000138.html was primarily for a different purpose, it seems to also demonstrate a long (non-broken) line, with use of angle brackets to enclose the URL:
RFC 3986 - Uniform Resource Identifier (URI): Generic Syntax – Appendix C. Delimiting a URI in Context |
The manual page for lsof is in section 8, not 1. The + for a hard line break was superfluous, where the next line was blank. <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266881> aims to raise awareness of macros such as package and man. Whilst the Link URL within this report is not part of a long sentence, the markup in this pull request might be good in the context of <freebsd#530>. Whilst here, a handful of suggested changes.
From https://docs.asciidoctor.org/asciidoc/latest/macros/autolinks/#url-schemes-for-autolinks, with added emphasis:
So, for example:
Given the discarding of angle bracket enclosures – in that context (the window to the right) – now I can't figure out whether discards will occur (and lead to breakage) in the context of e-mail … |
Hmm. Until a few minutes ago, I assumed some use of a2x(1) (ref: https://asciidoc-py.github.io/chunked/ch05.html#X43 for production of plain texts. Since experimenting, I imagine that some other routine is followed (not involving |
a2x seems to be geared toward DocBook XML intermediate stages, but we no longer use that at all. (It used to be the doc source format.) |
Angle brackets seem nice to avoid breaking links, however I doubt they really fix any of our problems:
The fix I propose: we introduce a new rule to enforce that each link corresponds to some short text as in Does that sound good? |
Resolve <freebsd#531 (review)>. Attention to <freebsd#530 (comment)>, > … link: … URL: … At the moment these fields are used to add links to the mail version, …
Earlier, after realising that a2x was not the answer, I had taken a hint from:
… and so on.
All good, thanks. No rush (I'm acutely aware that we're around two weeks past the deadline for submissions). In the meantime, I'll probably continue to experiment … |
An example:
Another example of breakage within the same report:
An example from the previous report, four URLs broken in the report from The FreeBSD Foundation:
– archived at https://markmail.org/message/wu5qp6kwmxajcxq5 (there's coincidental additional breakage, which is beyond the scope of this issue #530).
…
The text was updated successfully, but these errors were encountered: