【发布时间】:2022-06-19 13:08:37
【问题描述】:
我想得到带有换行符和缩进的文字输出,这样结果会如下所示:
int write(const std::string sFileName, int iStep, float fStartTime,
const std::string sInfoString, int iWhat
但是当我使用这个时
| ``int write(const std::string sFileName, int iStep, float fStartTime,
| `` const std::string sInfoString, int iWhat,``
我明白了
int write(const std::string sFileName, int iStep, float fStartTime,
`` const std::string sInfoString, int iWhat,``
我还尝试了用 unicode 替换不间断空格:
.. |xx| unicode:: U+00A0
但这并没有被替换:
| ``int write(const std::string sFileName, int iStep, float fStartTime,
| ``|xx||xx||xx|const std::string sInfoString, int iWhat,``
结果
int write(const std::string sFileName, int iStep, float fStartTime,
|xx||xx||xx|const std::string sInfoString, int iWhat
如何在双反引号之间实现我想要的缩进?
【问题讨论】:
标签: python-sphinx restructuredtext