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

Enable nested roles #103

Merged
merged 3 commits into from
Feb 24, 2024
Merged

Enable nested roles #103

merged 3 commits into from
Feb 24, 2024

Conversation

haszi
Copy link
Contributor

@haszi haszi commented Feb 22, 2024

Refactor role to be and array instead of a string to allow nesting of roles. Use the indent method to format constant list tables. Add tests for regular, table formatted and nested role containing <variablelist>s.

This PR fixes the shortcoming of the previous role="constant_list" PR and enables nested roles in <variablelist>s which allows to format constant lists in the documentation as tables without these being thrown off by elements that are rendered by adding roles to them (e.g. <literal>).

haszi added 2 commits February 22, 2024 22:45
Refactor role to be and array instead of a string to allow nesting of roles.
Use the indent method to format constant list tables.
Add tests for regular, table formatted and nested role containing variablelists.
phpdotnet/phd/Package/Generic/XHTML.php Outdated Show resolved Hide resolved
phpdotnet/phd/Format/Abstract/XHTML.php Outdated Show resolved Hide resolved
Add methods to push, pop and get role, and use these for all role accesses.
Make underlying $role array private.
Add comment on $role array being a LIFO stack.
@haszi haszi requested a review from Girgias February 23, 2024 19:23
@Girgias Girgias merged commit 3718f2f into php:master Feb 24, 2024
4 checks passed
@haszi haszi deleted the Nested-roles branch February 24, 2024 15:27
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.

2 participants