Thread overview | ||||||
---|---|---|---|---|---|---|
|
October 21, 2005 How to handle public: inside DDOC example section ? | ||||
---|---|---|---|---|
| ||||
The following code <snip> /++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Some description Example: -------------------------- import std.cstream; // define a class inside example section class Example { public: int id; this(int _id) { id = _id; } ~this() { } } -------------------------- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ / void main() { } </snip> produces incorrect html documentation. I guess the "public:" line is expected to be a DDOC macro. Anyone knows how to handle this ? With kind regards Klaus |
October 21, 2005 Re: How to handle public: inside DDOC example section ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Klaus Oberhofer | "Klaus Oberhofer" <oberhofer@users.sourceforge.net> wrote in message news:Xns96F67B56CEF3CC3DEE85C66A248c79606@63.105.9.61... > public: > [...] > produces incorrect html documentation. I guess the "public:" line is > expected to be a DDOC macro. Anyone knows how to handle this ? Put a space between public and :. |
October 24, 2005 Re: How to handle public: inside DDOC example section ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote: > "Klaus Oberhofer" <oberhofer@users.sourceforge.net> wrote in message > news:Xns96F67B56CEF3CC3DEE85C66A248c79606@63.105.9.61... > >> public: >>[...] >>produces incorrect html documentation. I guess the "public:" line is >>expected to be a DDOC macro. Anyone knows how to handle this ? > > > Put a space between public and :. > > Hum... here's an example where using '@' for doc would be "cleaner", altough the problem mentioned here is not very big/annoying. -- Bruno Medeiros - CS/E student "Certain aspects of D are a pathway to many abilities some consider to be... unnatural." |
October 24, 2005 Re: How to handle public: inside DDOC example section ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Fri, 21 Oct 2005 19:41:19 -0400, Walter Bright <newshound@digitalmars.com> wrote:
>
> "Klaus Oberhofer" <oberhofer@users.sourceforge.net> wrote in message
> news:Xns96F67B56CEF3CC3DEE85C66A248c79606@63.105.9.61...
>> public:
>> [...]
>> produces incorrect html documentation. I guess the "public:" line is
>> expected to be a DDOC macro. Anyone knows how to handle this ?
>
> Put a space between public and :.
>
How about making Ddoc skip ones that don't start with uppercase
|
Copyright © 1999-2021 by the D Language Foundation