D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 195 - DDoc generates bad output when example contains "protected" attribute
Summary: DDoc generates bad output when example contains "protected" attribute
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: ddoc, patch
Depends on:
Blocks:
 
Reported: 2006-06-14 10:04 UTC by Sean Kelly
Modified: 2014-02-15 13:19 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Sean Kelly 2006-06-14 10:04:11 UTC
The code:

/**
 * ---
 * class C {
 * protected:
 *   void fn() {}
 * }
 * ---
 */
class C
{

}

void main()
{

}

generates this HTML:

<br><br>
$(DDOC_MODULE_MEMBERS 
<dt><big>class <u>C</u>;
</big></dt>
$(DDOC_DECL_DD <pre class="d_code"> class C {
</pre>
<b>protected:</b><br>
void fn() {}
 }
<pre class="d_code"> 
</pre>
<br><br>
<dl></dl>
<br><br>
Comment 1 Don 2009-10-28 00:58:19 UTC
Fixed by the patch to bug 1117.
Comment 2 Leandro Lucarella 2009-10-29 14:36:56 UTC
Related SVN revision: http://www.dsource.org/projects/dmd/changeset/227
Comment 3 Walter Bright 2009-11-06 11:28:43 UTC
Fixed dmd 1.051 and 2.036