Hi all.


I have some code like this:



namespace A

{

       namespace B

       {

             /**

                 This is the doc for foo.

                 @code

                 mFoo.foo()

                 @endcode

             */

             void Foo::foo(void)

             {

             }

       }

}



When I generate the doc for it, then the samplecode gets correctly
formatted, but it also gets intended, ball the intention-levels of the
comment-block, that are caused by giving it the correct indentation
compared to the surrounding code.



Currently to avoid this unintended indentation, I would have to format the
code like this:



namespace A

{

       namespace B

       {

              /**

                 This is the doc for foo.

                 @code

mFoo.foo()

                 @endcode

             */

             void Foo::foo(void)

             {

             }

       }

}



or like this



namespace A

{

       namespace B

       {

/**

This is the doc for foo.

@code

mFoo.foo()

@endcode

*/

             void Foo::foo(void)

             {

             }

       }

}



which both destroys the code indentation and reduces readability, but I
would really like to avoid writing horribly formatted code as only chance
to achieve nicely formatted docs for this code.



Is there any way to tell doxygen to only count the relative indentation to
the rest of the comment instead of the absolute indentation inside the file?



Thanks,

Stefan.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Reply via email to