You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing the 'figure' format with numfig_format requires listing all other formats as well, otherwise an exception will be thrown.
Procedure to reproduce the problem
In conf.py set numfig_format={'figure': 'Figure %s'}, then try to build a document which has some figures and tables.
Error logs / results
Exception occurred:
File "/usr/lib/python2.7/dist-packages/sphinx/writers/html.py", line 279, in append_fignumber
self.body.append(prefix % numsstr + ' ')
TypeError: not all arguments converted during string formatting
The full traceback has been saved in /tmp/sphinx-err-PjF2Qy.log, if you want to report the issue to the developers.
Problem
Changing the 'figure' format with
numfig_format
requires listing all other formats as well, otherwise an exception will be thrown.Procedure to reproduce the problem
In
conf.py
setnumfig_format={'figure': 'Figure %s'}
, then try to build a document which has some figures and tables.Error logs / results
Workaround
Specify all formats:
Environment info
The text was updated successfully, but these errors were encountered: