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

Escape ] in rewritten xrefs for downstream doc #41678

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

gsmet
Copy link
Member

@gsmet gsmet commented Jul 4, 2024

Supersedes #41651

@gsmet
Copy link
Member Author

gsmet commented Jul 4, 2024

/cc @rolfedh @MichalMaler @jmartisk

Copy link

quarkus-bot bot commented Jul 4, 2024

Status for workflow Quarkus CI

This is the status report for running Quarkus CI on commit 2691190.

✅ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

You can consult the Develocity build scans.

@@ -466,6 +466,10 @@ private static String rewriteContent(String fileName,
return content;
}

private static String escapeXrefTitleForReplaceAll(String title) {
return title.trim().replace("]", "\\\\]");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And yes, you need that many backslashes :]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! :) Backslash magic.

@gsmet gsmet merged commit 2646b55 into quarkusio:main Jul 4, 2024
20 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.13 - main milestone Jul 4, 2024
@gsmet gsmet modified the milestones: 3.13 - main, 3.8.6 Jul 4, 2024
@gsmet
Copy link
Member Author

gsmet commented Jul 4, 2024

I pushed this fix to 3.8 too.

@rolfedh
Copy link
Contributor

rolfedh commented Jul 5, 2024

Thank you, @gsmet! Very appreciated!

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

Successfully merging this pull request may close these issues.

4 participants