Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix ValueError with invalid field name in format. #1

Merged
merged 1 commit into from

2 participants

@orsenthil
  File "/Users/skumaran/github/experiments/sphinxextension/exampleproject/hidden_code_block.py", line 104, in visit_hcb_html
    fill_header = {'divname': 'hiddencodeblock{}'.format(HCB_COUNTER),
ValueError: zero length field name in format
@orsenthil orsenthil Fix ValueError with invalid field name in format.
```
  File "/Users/skumaran/github/experiments/sphinxextension/exampleproject/hidden_code_block.py", line 104, in visit_hcb_html
    fill_header = {'divname': 'hiddencodeblock{}'.format(HCB_COUNTER),
ValueError: zero length field name in format
```
0c9f996
@scopatz
Owner

Thanks for the PR. For the record, I think that you just needed to run with a more recent version of Python.

@scopatz scopatz merged commit fc0496f into scopatz:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 25, 2014
  1. @orsenthil

    Fix ValueError with invalid field name in format.

    orsenthil authored
    ```
      File "/Users/skumaran/github/experiments/sphinxextension/exampleproject/hidden_code_block.py", line 104, in visit_hcb_html
        fill_header = {'divname': 'hiddencodeblock{}'.format(HCB_COUNTER),
    ValueError: zero length field name in format
    ```
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  hidden_code_block.py
View
2  hidden_code_block.py
@@ -101,7 +101,7 @@ def visit_hcb_html(self, node):
# block that was just made.
code_block = self.body[-1]
- fill_header = {'divname': 'hiddencodeblock{}'.format(HCB_COUNTER),
+ fill_header = {'divname': 'hiddencodeblock{0}'.format(HCB_COUNTER),
'startdisplay': 'none' if node['starthidden'] else 'block',
'label': node.get('label'),
}
Something went wrong with that request. Please try again.