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
XML comments on compounds appear twice #1446
Comments
|
Is Also, backticks (```) are what you need for code blocks, not quotes ( Also, what's "the first definition (of 'seed')"? The definition you've pasted there should be all that's necessary. There's no "struct DFHACK_EXPORT" for it because it's a primitive type. |
|
What I meant was that the first definition was that of 'seed', and that it was the one that wasn't shown (because of my failure to realize the ticks should be the backwards ones), not for any technical reason regarding the XML itself. And yes, seems to achieve at least half of what I want without the uglification induced by forcing newlines. The half that's achieved is to get the comment into the generated .h file. However, I still get the comment duplicated when placed inside the compound: results in: (Don't mind the actual text: it's currently mostly placeholders to experiment with the commenting functionality). The other thing I was trying to achieve was to get the comment picked up by Ragundo's dwarfexplorer tool, but it doesn't pick up the "comment" attribute on the compound anyway... Edit: It seems the tag causes its contents to be placed before the item inside of which it's placed in the XML file, resulting in an annoying difference between the placement in the two files: results in: (and if placed outside of the static-array but in between the first and second one, it still gets pushed outside of the compound the two are part of, with the associated duplication). |
I tried to add a comment to a compound definition (df.world-data.xml:world_region_details.edges):
but when generated the world_region_details.h contents becomes:
The formatting also differs between the two instances if '&'#10; is used to create split line comments (Can't get the ampersand displayed correctly without the quotes). Also, the first definition (of 'seed') in the first quote isn't displayed, but just appears as blank lines, for some reason.
The text was updated successfully, but these errors were encountered: