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

Fix -dita-use-conref-target in preprocess2 #4307

Merged
merged 2 commits into from Oct 22, 2023

Conversation

jelovirt
Copy link
Member

@jelovirt jelovirt commented Oct 22, 2023

Description

Fix how -dita-use-conref-target is handled during preprocess2.

Optimize attribute processing to use fewer short lived AttributesImpl and QName objects.

Motivation and Context

When @href has value -dita-use-conref-target preprocess2 treats it as a resource during initial parse and rewrites the attribute. If any attribute has value -dita-use-conref-target, it needs to passed through as is.

How Has This Been Tested?

Existing test.

Type of Changes

  • Bug fix (non-breaking change which fixes an issue)

Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
@jelovirt jelovirt added bug priority/medium Medium (or unknown) priority issue preprocess2 labels Oct 22, 2023
@jelovirt jelovirt self-assigned this Oct 22, 2023
@jelovirt jelovirt merged commit 4a03ce8 into develop Oct 22, 2023
4 checks passed
@jelovirt jelovirt deleted the feature/fix-preprocess-dita-use-conref-target branch October 22, 2023 08:31
@jelovirt jelovirt added this to the Next milestone Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug preprocess2 priority/medium Medium (or unknown) priority issue
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant