Doxygen comment JavaDoc indentation fix for simple Java enums
This commit is contained in:
parent
ae32180709
commit
cb8d42b750
1 changed files with 2 additions and 2 deletions
|
|
@ -1306,10 +1306,10 @@ public:
|
||||||
} else {
|
} else {
|
||||||
// Translate and write javadoc comment for the enum itself if flagged
|
// Translate and write javadoc comment for the enum itself if flagged
|
||||||
if (doxygen && doxygenTranslator->hasDocumentation(n)) {
|
if (doxygen && doxygenTranslator->hasDocumentation(n)) {
|
||||||
String *doxygen_comments = doxygenTranslator->getDocumentation(n, 0);
|
String *doxygen_comments = doxygenTranslator->getDocumentation(n, " ");
|
||||||
if (comment_creation_chatter)
|
if (comment_creation_chatter)
|
||||||
Printf(constants_code, "/* This was generated from enumDeclaration() */\n");
|
Printf(constants_code, "/* This was generated from enumDeclaration() */\n");
|
||||||
Printf(constants_code, "/* Comment for enum %s */\n", Getattr(n, "unnamedinstance") ? "" : symname);
|
Printf(constants_code, " /* Comment for enum %s */\n", Getattr(n, "unnamedinstance") ? "" : symname);
|
||||||
Printf(constants_code, Char(doxygen_comments));
|
Printf(constants_code, Char(doxygen_comments));
|
||||||
Printf(constants_code, "\n");
|
Printf(constants_code, "\n");
|
||||||
Delete(doxygen_comments);
|
Delete(doxygen_comments);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue