Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pod link anchors mangled (spaces to dashes) #988

Closed
ghost opened this issue Nov 10, 2013 · 2 comments
Closed

pod link anchors mangled (spaces to dashes) #988

ghost opened this issue Nov 10, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 10, 2013

pod link anchors mangled (spaces to dashes)
For example
https://metacpan.org/pod/Marpa::R2::Semantics#Reserved-action-names
should be
https://metacpan.org/pod/Marpa::R2::Semantics#Reserved%20action%20names
because the way you link to it in pod is
L<Marpa::R2::Semantics/Reserved action names>
and what gets displayed in the browser is
Reserved action names
simply escapeHTML($anchorname) and do no other processing to it, and users
can copy/paste append to url and share,
no converting nonword chars to dashes, no viewsource or other browser tricks required

Thanks for listening, I apologize if this topic was opened before, I did search for it

@rwstauner
Copy link
Contributor

The html is produced by Pod::Simple::XHTML:

This method turns an arbitrary string into a valid XHTML ID attribute
value. The rules enforced, following
<http://webdesign.about.com/od/htmltags/a/aa031707.htm>, are:

*   The id must start with a letter (a-z or A-Z)

*   All subsequent characters can be letters, numbers (0-9), hyphens (-),
    underscores (_), colons (:), and periods (.).

*   The final character can't be a hyphen, colon, or period. URLs ending
    with these characters, while allowed by XHTML, can be awkward to
    extract from plain text.

@ranguard
Copy link
Member

Any fixes for this need to be made to Pod::Simple::XHTML - closing ticket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants