Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Style fix
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Dec 21, 2015
1 parent 34611cb commit ac5d468
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nikola/utils.py
Expand Up @@ -1294,9 +1294,9 @@ def demote_headers(doc, level=1):
r = range(1 + level, 7)
for i in reversed(r):
# html headers go to 6, so we can’t “lower” beneath five
elements = doc.xpath('//h' + str(i))
for e in elements:
e.tag = 'h' + str(i + level)
elements = doc.xpath('//h' + str(i))
for e in elements:
e.tag = 'h' + str(i + level)


def get_root_dir():
Expand Down

0 comments on commit ac5d468

Please sign in to comment.