Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.1.6 fails processing #15

Open
bs-jena opened this issue Oct 8, 2019 · 0 comments
Open

v1.1.6 fails processing #15

bs-jena opened this issue Oct 8, 2019 · 0 comments

Comments

@bs-jena
Copy link

bs-jena commented Oct 8, 2019

1.1.6 fails stating

Applying preprocessor includes... Failed to apply preprocessor includes: decoding to str: need a bytes-like object, int found

The log says:

2019-10-08 14:33:52,839 |           flt.pandoc |    ERROR | Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/foliant/backends/base.py", line 72, in apply_preprocessor
    preprocessor_options
  File "/usr/local/lib/python3.7/site-packages/foliant/preprocessors/includes.py", line 944, in apply
    self.project_path.resolve()
  File "/usr/local/lib/python3.7/site-packages/foliant/preprocessors/includes.py", line 902, in process_includes
    nohead=options.get('nohead')
  File "/usr/local/lib/python3.7/site-packages/foliant/preprocessors/includes.py", line 654, in _process_include
    nohead
  File "/usr/local/lib/python3.7/site-packages/foliant/preprocessors/includes.py", line 287, in _cut_from_position_to_position
    r'^\#{1,6}\s+' + rf'{re.escape(from_heading)}\s*$',
  File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/re.py", line 259, in escape
    pattern = str(pattern, 'latin1')
TypeError: decoding to str: need a bytes-like object, int found

Using the same MD sources, version 1.1.5 works successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant