问题描述
我的代码:
.. testcode::
print("a\t1")
.. testoutput::
:options: +norMALIZE_WHITESPACE
a 1
输出:
File "index.rst",line 103,in default
Failed example:
print("a\t1")
Expected nothing
Got:
a 1
行号完全错误(相差50左右) 删除:options:+ norMALIZE_WHITESPACE会产生此结果,无论我是否在期望的输出中放入制表符或空格:
File "index.rst",line 121,in default
Failed example:
print("a\t1")
Expected:
a 1
Got:
a 1
最后,如果我用等效的空格替换打印语句中的选项卡,并删除:options:行,那么它会起作用。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)