Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Value of first @copydoc could end up in the brief description.
Based on this observation: https://stackoverflow.com/q/70448684/784672
- Loading branch information
ab74ff2
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.
I think this fix does work for the situation as given in the mentioned issue on stackoverflow (a bit smaller):
but not for the situation without a list:
which results in:
Note the extra white space.
Example: example.tar.gz
ab74ff2
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.
Another problem here occurs (and occurred before as well) when the splitting of
\copydoc
is done by hand in the components\copybrief
and\copydetails
like:it gives some warnings like:
and the output doesn't look nice either.
Example: example2.tar.gz
ab74ff2
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.
I've made some more fixes in 950c6ce
Note that since
@copydoc
is just@copybrief
+@copydetails
the position of@copydoc
is important.I think the guideline should be: use
@copydoc
if you want to duplicate the full comment and only want to optionally add some more details after the@copydoc
, and use explicit@copybrief
and@copydetails
in other cases.ab74ff2
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.
For a human it might all be clear what is intended, but it will be (nearly) impossible to get this tight in a program.
I agree with the guideline and I think the guideline:
should be mentioned in the documentation as well.
Furthermore with the
@details
command a user can also accomplish some more improvements.