www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How to handle public: inside DDOC example section ?

reply Klaus Oberhofer <oberhofer users.sourceforge.net> writes:
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
Oct 21 2005
parent reply "Walter Bright" <newshound digitalmars.com> writes:
"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 :.
Oct 21 2005
next sibling parent Bruno Medeiros <daiphoenixNO SPAMlycos.com> writes:
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."
Oct 24 2005
prev sibling parent Vathix <chris dprogramming.com> writes:
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
Oct 24 2005