Jas*_*son 6 whitespace doxygen
我想知道有没有办法在Doxygen的html中的注释中插入空格?我在网上搜索了Doxygen手册,但我找不到任何可以做到的东西.
例如,我正在尝试添加注释如下:
//! motor_id, motor direction, accel, min veloc, max veloc\n
//! GAUGE_MOTOR_1, CLOCKWISE, 100, 1, 360\n
//! GAUGE_MOTOR_2, CLOCKWISE, 100, 1, 360\n
//! GAUGE_MOTOR_3, CLOCKWISE, 100, 1, 360\n
//! GAUGE_MOTOR_4, CLOCKWISE, 100, 1, 360\n
//! GAUGE_MOTOR_5, CLOCKWISE, 400, 200, 350\n
Run Code Online (Sandbox Code Playgroud)
但是html输出显示了这样的结果
motor_id, motor direction, accel, min veloc, max veloc
GAUGE_MOTOR_1, CLOCKWISE, 100, 1, 360
GAUGE_MOTOR_2, CLOCKWISE, 100, 1, 360
GAUGE_MOTOR_3, CLOCKWISE, 100, 1, 360
GAUGE_MOTOR_4, CLOCKWISE, 100, 1, 360
GAUGE_MOTOR_5, CLOCKWISE, 400, 200, 350
Run Code Online (Sandbox Code Playgroud)
两个单词之间的空白区域将被doxygen自动缩小到一个空格.有人知道如何解决这个问题吗?这将有很大帮助.
非常感谢你.
dox*_*gen 10
你可以使用其中之一
//! <pre>
//! motor_id, motor direction, accel, min veloc, max veloc
//! GAUGE_MOTOR_1, CLOCKWISE, 100, 1, 360
//! GAUGE_MOTOR_2, CLOCKWISE, 100, 1, 360
//! GAUGE_MOTOR_3, CLOCKWISE, 100, 1, 360
//! GAUGE_MOTOR_4, CLOCKWISE, 100, 1, 360
//! GAUGE_MOTOR_5, CLOCKWISE, 400, 200, 350
//! </pre>
Run Code Online (Sandbox Code Playgroud)
要么
//! \verbatim
//! motor_id, motor direction, accel, min veloc, max veloc
//! GAUGE_MOTOR_1, CLOCKWISE, 100, 1, 360
//! GAUGE_MOTOR_2, CLOCKWISE, 100, 1, 360
//! GAUGE_MOTOR_3, CLOCKWISE, 100, 1, 360
//! GAUGE_MOTOR_4, CLOCKWISE, 100, 1, 360
//! GAUGE_MOTOR_5, CLOCKWISE, 400, 200, 350
//! \endverbatim
Run Code Online (Sandbox Code Playgroud)
后者将真正显示文本原样.前者仍然会让块内的doxygen解释命令,同时保留空格.