fix: Handle extraction patterns that return None
This commit is contained in:
parent
b6ab0fb7ee
commit
c33a292d1c
@ -156,6 +156,8 @@ is checked for `{! ... !}`.
|
|||||||
and handling inclusion syntax.
|
and handling inclusion syntax.
|
||||||
"""
|
"""
|
||||||
line = extraction_pattern.replace_line(line)
|
line = extraction_pattern.replace_line(line)
|
||||||
|
if line is None:
|
||||||
|
return
|
||||||
include_match = StreamInclusion.include_open.search(line)
|
include_match = StreamInclusion.include_open.search(line)
|
||||||
if not include_match:
|
if not include_match:
|
||||||
self.output_stream.write(line)
|
self.output_stream.write(line)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = mkdocs-semiliterate
|
name = mkdocs-semiliterate
|
||||||
version = 0.8.0
|
version = 0.8.1
|
||||||
description = Extension of mkdocs-simple-plugin adding easy content inclusion
|
description = Extension of mkdocs-simple-plugin adding easy content inclusion
|
||||||
long_description = file: README.md
|
long_description = file: README.md
|
||||||
long_description_content_type = text/markdown
|
long_description_content_type = text/markdown
|
||||||
|
Loading…
Reference in New Issue
Block a user