You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "c:/central/md2email/poc.py", line 19, in <module>
print pynliner.fromString(html)
File "C:\Users\ITO_YU\Anaconda2\lib\site-packages\pynliner\__init__.py", line 318, in fromString
return Pynliner(**kwargs).from_string(string).run()
File "C:\Users\ITO_YU\Anaconda2\lib\site-packages\pynliner\__init__.py", line 139, in run
self._apply_styles()
File "C:\Users\ITO_YU\Anaconda2\lib\site-packages\pynliner\__init__.py", line 262, in _apply_styles
for element in select(self.soup, selector.selectorText):
File "C:\Users\ITO_YU\Anaconda2\lib\site-packages\pynliner\soupselect.py", line 174, in select
context_matches = [el for el in context[0].find_all(tag, find_dict) if checker(el)]
File "C:\Users\ITO_YU\Anaconda2\lib\site-packages\pynliner\soupselect.py", line 98, in checker
if not func(el):
File "C:\Users\ITO_YU\Anaconda2\lib\site-packages\pynliner\soupselect.py", line 82, in <lambda>
'first-child': lambda el: is_first_content_node(getattr(el, 'previousSibling', None)),
File "C:\Users\ITO_YU\Anaconda2\lib\site-packages\pynliner\soupselect.py", line 70, in is_first_content_node
if is_white_space(el):
File "C:\Users\ITO_YU\Anaconda2\lib\site-packages\pynliner\soupselect.py", line 50, in is_white_space
if isinstance(el, bs4.NavigableString) and str(el).strip() == '':
UnicodeEncodeError: 'ascii' codec can't encode characters in position 4-8: ordinal not in range(128)
exit status 1
>>> pynliner.__version__
'0.8.0'
python --version
Python 2.7.13 :: Anaconda, Inc.
The text was updated successfully, but these errors were encountered:
pynliner fail to convert html when we use non ascii characters with Pseudo classes.
Minimal code to reproduce
Error outputs
The text was updated successfully, but these errors were encountered: