我正在使用 Natural Docs 从我的 Python 代码生成文档,我的 Python 注释是这样的:
Function: get_students
Parameters:
since_data:
Returns:
res:
{'count':
'info': [
'mobile': '15011111111',
'nickname': 'xiaoya',
'gender': 0(unknow) or 1(male) or 2(female),
'level': 0-12,
'register_at': '2013-01-01 08:08:08',
]
}
"""
我的 config.txt 是这样的:
Language: Python
Extension: py
Shebang String: python
Line Comment: #
Block Comment: """ """
Function Prototype Ender: :
Variable Prototype Ender: =
Line Extender: /
当我得到生成的html时,返回值没有换行符,我只能得到这样的换行符:
Returns:
res:
{'count': \n
'info': [
'mobile': '15011111111',
'nickname': 'xiaoya',
'gender': 0(unknow) or 1(male) or 2(female),
'level': 0-12,
'register_at': '2013-01-01 08:08:08',
]
}
我必须在每行之间添加一个空行以获得换行符。我可以尝试什么来解决这个问题?