Skip to content

Conversation

@lacatoire
Copy link
Contributor

Summary

  • Adds trim() to all text handler functions that resolve links (format_function_text, format_varname_text, format_classname_text, format_type_text, format_enumidentifier_text, and classsynopsis variants) in both PHP and PEAR XHTML packages
  • When <function>, <methodname>, <classname>, <varname>, <type>, or <enumidentifier> tags contain leading/trailing whitespace (e.g. from line breaks in translated documentation), link resolution was failing because the lookup key included the whitespace
  • Adds a test covering <function>, <methodname>, <classname>, and <varname> tags with whitespace

Fixes #80

When <function>, <methodname>, <classname>, <varname>, <type>, or
<enumidentifier> tags contain leading/trailing whitespace (e.g. from
line breaks in translated documentation), link resolution fails because
the lookup key includes the whitespace.

Add trim() to all text handler functions that resolve links, ensuring
whitespace does not break cross-reference linking.
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

Successfully merging this pull request may close these issues.

Be more lax in function/methodnames tag in regards to whitespace

1 participant