Doxygen编辑部分

时间:2017-05-17 11:49:11

标签: javascript html doxygen

我有一个关于在Doxygen中动态格式化HTML输出的问题。

我们使用Doxygen来记录我们的C源代码。有些评论由CVS工具自动生成。 为了显示这些注释,我通过ALIASES创建了一个section标签,如“mksrevisionlist = \ section mks_revisionlist MKS File Revision List”。这些评论的一个例子如下:

  • Revision 1.15 2017/04/27 12:40:58CEST xxx xxx(xxxx)*
  • 为Doxygen *
  • 添加了修订标签
  • 修订版1.14 2017/04/26 10:05:29CEST xxx xxx(xxxx)*
  • 添加了文档*

这很好但现在的问题是注释的换行符不会在HTML输出上传输。 它看起来像在屏幕上: doxygen_htmlOutput

输入看起来像:

    /*******************************************************************************
 * @mksrevisionlist
 * $Log: feature/50_Src/ $ 
 * Revision 1.15 2017/04/27 12:40:58CEST xx (xxx)  *
 * Added revision tags for Doxygen *
 * Revision 1.14 2017/04/26 10:05:29CEST xx (xxx)  *
 * Added documentation * 
 * Revision 1.13 2017/04/24 14:33:52CEST xx (xxx)  *
 * Doxygen Support *
 * Revision 1.12 2017/04/21 16:14:11CEST xx (xxx)  *
 * Comment Maintenance *
 * Revision 1.11 2017/04/21 15:36:53CEST xx (xxx)  *
 * Removed includes of C*
 * Revision 1.10 2017/03/16 13:38:32CET xx (xxx)  *
 * Signal renaming: msp: out signals are now called *
 * Revision 1.9 2017/03/08 15:03:11CET xx (xxx)  *
 * Member moved from feature/50_ in project  in project  *
 * Revision 1.8 2017/02/15 11:31:26CET xx (xxx)  *
 * Updated comments about straight routing of  and  *
 * Revision 1.7 2017/01/27 17:15:03CET xx (xxx)  *
 * Removal of legacy code Step 3) *
 * Revision 1.6 2016/12/02 14:54:18CET xx (xxx)  *
 * Member moved from 50_Src/BRK/ in project  in project . *
 * Revision 1.5 2016/11/30 14:53:38CET xx (xxx)  *
 * Replaced  with . *
 * Removed  (P). *
 * Revision 1.4 2016/11/30 13:23:50CET xx (xxx)  *
 * Member moved from BRK/ in project  in project . *
 * Revision 1.3 2016/09/15 15:04:13CEST xx (xxx)  *
 * Include Cin addition to C *
 * Revision 1.2 2016/08/10 16:34:24MESZ xx (xxx)  *
 * Clean up version log information and change souce in comments to MISRA style *
 * Revision 1.1 2016/07/06 16:39:08MESZ xx (xxx)  *
 * Initial revision *
 * Member added to project  *
 *******************************************************************************/

生成的HTML输出是:

<dl class="section rcs"><dt>Date</dt><dd>2017/04/27 12:40:58CEST </dd></dl>
<h1><a class="anchor" id="mks_revision"></a>
MKS File Revision</h1>
<dl class="section rcs"><dt>Revision</dt><dd>1.15 </dd></dl>
<h1><a class="anchor" id="mks_revisionlist"></a>
MKS File Revision List</h1>
<dl class="section rcs"><dt>Log</dt><dd><a class="el" href="msp___p_brake_8c.html" title="Park brake unit. ">feature/50_Src/brake/msp_PBrake.c</a> </dd></dl>
<p>Revision 1.15 2017/04/27 12:40:58CEST xx (xxx) * Added revision tags for Doxygen * Revision 1.14 2017/04/26 10:05:29CEST xx (xxx) * Added documentation * Revision 1.13 2017/04/24 14:33:52CEST xx (xxx) * Doxygen Support * Revision 1.12 2017/04/21 16:14:11CEST xx (xxx) * Comment Maintenance * Revision 1.11 2017/04/21 15:36:53CEST xxx (xxx) * Removed includes of C* Revision 1.10 2017/03/16 13:38:32CET xx (xxx) * Signal renaming: m are now called * Revision 1.9 2017/03/08 15:03:11CET xx (xxx) * Member moved from feature/50_Sr/xx in project  to <a class="el" href="xx.html" title="Park brake unit. "></a> in project . * Revision 1.8 2017/02/15 11:31:26CET xx (xxx) * Updated comments about straight routing of and  * Revision 1.7 2017/01/27 17:15:03CET xx (xxx) * Removal of legacy code Step 3) * Revision 1.6 2016/12/02 14:54:18CET xx (xxx) * Member moved from 50_Src/xx in project * Revision 1.5 2016/11/30 14:53:38CET xx (xxx) * Replaced  with . * Removed . * Revision 1.4 2016/11/30 13:23:50CET xx (xxx) * Member moved from BRK/xx in project  * Revision 1.3 2016/09/15 15:04:13CEST xx (xxx) * Include CDI_MSP.h in addition to CDI_CDI.h * Revision 1.2 2016/08/10 16:34:24MESZ xx (xxx) * Clean up version log information and change souce in comments to MISRA style * Revision 1.1 2016/07/06 16:39:08MESZ xx (xxx) * Initial revision * Member added to project  * </p>

我们正在使用Doxygen版本1.8.13。

有没有办法在不操纵注释的情况下格式化该部分?

我尝试使用JavaScript,但它不起作用。

过去可能有人遇到了sam问题并找到了解决方案。

谢谢和问候, ONUR

0 个答案:

没有答案