mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix a test in the asciidoc reader, and add asciidoc to travis so that
the related tests will not be skipped.
This commit is contained in:
parent
1bbfdf96a0
commit
a7a71da6df
2 changed files with 4 additions and 2 deletions
|
|
@ -285,7 +285,8 @@ class AsciiDocReader(Reader):
|
|||
def read(self, source_path):
|
||||
"""Parse content and metadata of asciidoc files"""
|
||||
from cStringIO import StringIO
|
||||
text = StringIO(pelican_open(source_path))
|
||||
with pelican_open(source_path) as source:
|
||||
text = StringIO(source)
|
||||
content = StringIO()
|
||||
ad = AsciiDocAPI()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue