-
Notifications
You must be signed in to change notification settings - Fork 50
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
Ignore leading/trailing space in function/method/variable names when linking (closes #80) #148
base: master
Are you sure you want to change the base?
Conversation
@jimwins The top level xml element needs a DocBook xml namespace declaration (ie. |
@Girgias We've talked about this when I wanted to fix this issue and IIRC you preferred fixing the markup in the doc repos instead of silently trimming them. |
If it is preferable to fix the sources instead silently trimming, then this code can be changed to verbosely generate alerts where some And/or re-implement these types of tests on doc-base scripts, as |
Or to not trim silently, but trim and generate warnings. |
Adding the namespace declaration doesn't fix the test, it's still not indexing the name of the class for some reason. How that is supposed to get pulled from the contents is still dark magic to me. Making this class of problem in the XML fail when building instead of just handling it is probably the better solution. Warnings will eventually just get ignored and start piling up. |
I think that adding warnings in PHD is still good, as linking fails may occurs for other reasons besides whitespace. About warning/failing this in XML build/configure, I have a old code from when
|
Try adding |
Okay, found the problem with my test, and it's because the way the anchors are captured for We could print warnings about missing links in the |
I agree with warning/failing in |
I didn't have much preference but @salathe IIRC preferred fixing the XML sources. I'm okay with allowing the linking, but it should warn so that the sources can be fixed. |
This doesn't quite work, I think the XML in my test case isn't right because the class name isn't actually get linked and I can see that it's not getting indexed correctly.