Comments (5)
The error is caused by lines 146, 150 and 156 in the source file. The file has <hr></hr>
instead of <hr/>
and that causes the XML parser to fail. At this point I only know why it fails. I don't know yet (1) how a user could detect that situation easily, or (2) what could be changed in ppcomp to either identify it or live with it.
from ppwb.
Thanks. I hadn't spotted them.
from ppwb.
If we don't want to consider those an error--and the HTML validator apparently says it's okay--then we should change the code to accept it. For that to happen, I believe it's as simple as putting this in the "cleanup some errors" block near line 220 of comp_pp.py:
self.parser_errlog = [x for x in parser.error_log if parser.error_log[0].type != 76]
I can start a PR for that if we want to ignore it and continue in ppcomp. Or maybe we want ppcomp to flag it and continue. Or maybe just flag it and bail out. What do we want to happen?
from ppwb.
from ppwb.
@cpeel @windymilla
It may pass W3C, but it does not pass Nu Html checker:
Error: Stray end tag hr.
From line 2904, column 5; to line 2904, column 9
and according to the Whatwg.org standard is not valid html.
Suggest closing.
from ppwb.
Related Issues (11)
- Allow no language to be selected for pptext HOT 1
- Minor update to ppcomp web page HOT 4
- ppcomp "add [Sidenote: ...]" option does not seem to be passing '--css-add-sidenote' correctly HOT 1
- Brackets around footnote anchors HOT 14
- Request to add --css option handling for ppcomp
- PPComp error message when using "Extract and process footnotes separately" HOT 1
- ppcomp not showing error list on failure HOT 2
- "Suppress pipe characters" option for ppcomp
- Portuguese spell check only works past a if secondary language is also selected HOT 1
- Should a Right Single Quotation Mark be an query: unexpected paragraph end?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ppwb.