-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Conversation
Status for workflow
|
@@ -466,6 +466,10 @@ private static String rewriteContent(String fileName, | |||
return content; | |||
} | |||
|
|||
private static String escapeXrefTitleForReplaceAll(String title) { | |||
return title.trim().replace("]", "\\\\]"); |
There was a problem hiding this comment.
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 :]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! :) Backslash magic.
I pushed this fix to 3.8 too. |
Thank you, @gsmet! Very appreciated! |
Supersedes #41651