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
Error SyntaxError: Unexpected token (COLON, u':') at 1:33 between LexToken(STRING,u'"@context"',1,22) and LexToken(STRING,u'"http://schema.org"',1,35) on valid JSON-LD markup in HTML.
python prettify-json-ld-error.py
Traceback (most recent call last):
File "D:\\prettify-json-ld-error.py", line 21, in <module>
print HTMLBeautifier.beautify(html)
File "D:\python\lib\html5print\html5print.py", line 111, in beautify
html = JSBeautifier.beautifyTextInHTML(html, indent, encoding)
File "D:\python\lib\html5print\jsprint.py", line 127, in beautifyTextInHTML
cls.beautify, (indent,), indent)
File "D:\python\lib\html5print\utils.py", line 197, in _findAndReplace
lines = [thisIndent + l for l in bfunc(*params).splitlines()]
File "D:\python\lib\html5print\jsprint.py", line 93, in beautify
tree = parser.parse(decodeText(js))
File "D:\python\lib\slimit\parser.py", line 93, in parse
return self.parser.parse(text, lexer=self.lexer, debug=debug)
File "D:\python\lib\ply\yacc.py", line 265, in parse
return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc)
File "D:\python\lib\ply\yacc.py", line 1047, in parseopt_notrack
tok = self.errorfunc(errtoken)
File "D:\python\lib\slimit\parser.py", line 116, in p_error
self._raise_syntax_error(token)
File "D:\python\lib\slimit\parser.py", line 89, in _raise_syntax_error
self.lexer.prev_token, self.lexer.token())
SyntaxError: Unexpected token (COLON, u':') at 1:20 between LexToken(STRING,u'"context"',1,11) and LexToken(STRING,u'"http://schema.org
"',1,22)
May be should ignore scripts what cannot be parsed or use JSON-LD parser?
The text was updated successfully, but these errors were encountered:
Error
SyntaxError: Unexpected token (COLON, u':') at 1:33 between LexToken(STRING,u'"@context"',1,22) and LexToken(STRING,u'"http://schema.org"',1,35)
on valid JSON-LD markup in HTML.The result:
May be should ignore scripts what cannot be parsed or use JSON-LD parser?
The text was updated successfully, but these errors were encountered: