Closed scabug closed 13 years ago
Imported From: https://issues.scala-lang.org/browse/SI-4233?orig=1 Reporter: @wallachd Attachments:
@dubochet said: I don't think this is an issue, but an enhancement request. The comment appears twice in the HTML file because of the way short comments are handled by Scaladoc. However, CSS and JavaScript styling prevent the comment from being displayed twice (if this isn't the case, this is indeed an issue, but I couldn't reproduce it).
The first copy of the comment is the "short comment" that is displayed by default, the second is the "full comment" that is displayed after clicking the signature, and which contains additional metadata for attributes, super types, link to source, etc. Furthermore, both have slightly different markup. For members, the "short comment" is only the first sentence of the comment so that there is little overhead. However, for classes, we decided that the comment displayed by default should not be abbreviated, which can lead to large duplication if the comment is long. This solution is suboptimal and should be changed at some point, but the change is not of the highest priority IMO.
@dubochet said: As a temporary fix, I could add a Scaladoc option that controls whether the short comment for a class is the whole comment or just the first sentence. Depending on the documenting style, either make sense. Let me know if you think this would be useful.
=== What steps will reproduce the problem (please be specific and use wikiformatting)? ===
=== What is the expected behavior? ===
=== What do you see instead? ===
=== Additional information === (for instance, a link to a relevant mailing list discussion)
=== What versions of the following are you using? ===