Re: Allow Whitespace in L<> URLs?

[email protected] ("David E. Wheeler") Thu, 8 Jan 2015 13:07:58 -0800
Newsgroups perl.pod-people
Message-ID <[email protected]>
On Jan 8, 2015, at 1:00 PM, Ricardo Signes <[email protected]> wrote:

> I didn't scrutinize the regexp (which is present in perlpodspec) closely, but
> URLs may not contain unescape spaces, so I think there's no reason to allow it.
> 
>  L<foo bar|http://baz-bar>    should be okay
>  L<foo bar|http://baz bar>    should not
>  L<foo bar | http://baz-bar>  unclear from quick skim of spec
> 
> I assume the second case is what came up.  It's not a valid URI, by my reading
> of https://tools.ietf.org/html/rfc3986#appendix-A

IIUC, the case that came up was

    L<foo bar|http://baz.com/foo
    bar>

I am kind of inclined to just say that such things are verboten. However, ticket 95710 offers up this example:

    L<DEMO with NL|
    /DEMO> and trailing text

It’s not just URLs that we need to decide how to deal with, I guess.

David
smime.p7s (application/pkcs7-signature, 4 KB) - not displayed