mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
pass travis test with an <id> option
This commit is contained in:
parent
f3bf3c7699
commit
951b184017
1 changed files with 4 additions and 1 deletions
|
|
@ -71,7 +71,10 @@ class Pygments(Directive):
|
|||
if flag in self.options:
|
||||
self.options[flag] = True
|
||||
|
||||
self.options['linespans'] += next(code_block_id)
|
||||
if '<id>' in self.options['linespans']:
|
||||
self.options['linespans'] = str(self.options['linespans']).replace(
|
||||
'<id>', next(code_block_id)
|
||||
)
|
||||
|
||||
# noclasses should already default to False, but just in case...
|
||||
formatter = HtmlFormatter(noclasses=False, **self.options)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue