Thread overview
How to handle public: inside DDOC example section ?
Oct 21, 2005
Klaus Oberhofer
Oct 21, 2005
Walter Bright
Oct 24, 2005
Bruno Medeiros
Oct 24, 2005
Vathix
October 21, 2005
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
"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
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
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