1628 – Ddoc produces invalid documentation for --- blocks

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1628 - Ddoc produces invalid documentation for --- blocks
Summary: Ddoc produces invalid documentation for --- blocks
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: ddoc, patch
Depends on:
Blocks:
Reported: 2007年10月30日 17:28 UTC by Jari-Matti Mäkelä
Modified: 2014年02月24日 15:32 UTC (History)
3 users (show)

See Also:


Attachments
Patch against DMD2.042 svn 416 (1.38 KB, patch)
2010年03月15日 12:55 UTC, Don
Details | Diff
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Jari-Matti Mäkelä 2007年10月30日 17:28:06 UTC
Adding newlines between ---s produce odd output. Here's a minimal example:
<code>
/**----
----*/class C{}
</code>
produces
<output>
mymodule
 $(DDOC_MODULE_MEMBERS 
class F; 
 $(DDOC_DECL_DD
</output>
Removing the line feeds between ---'s or filling the empty line with content hides the errors.
Comment 1 Don 2010年03月15日 12:55:16 UTC
Created attachment 589 [details] 
Patch against DMD2.042 svn 416
Also fixes bug 122.
Comment 2 Don 2010年03月15日 12:57:45 UTC
This is pretty simple, we just need to cope with the case where the code section is empty. 
I also generate an error for cases like:
/**
 this code doesn't have a proper ending
---
 int x;
*/
which I think is better than generating an invalid html file.
Comment 3 Walter Bright 2010年04月04日 12:31:50 UTC
changeset 431
Comment 4 Don 2010年04月09日 19:08:05 UTC
Fixed DMD1.058 and DMD2.043.


AltStyle によって変換されたページ (->オリジナル) /