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

Anyway to avoid conversion errors? #13

Closed
onizet opened this issue Oct 20, 2017 · 0 comments
Closed

Anyway to avoid conversion errors? #13

onizet opened this issue Oct 20, 2017 · 0 comments
Assignees

Comments

@onizet
Copy link
Owner

onizet commented Oct 20, 2017

[copied from codeplex]

I'm trying to convert slabs of HTML some of which have originated in word and were copied into a large CMS.
With really simple clean html html2openxml works fine, but as soon as I try some of these more complex examples I get exceptions thrown.
At first it didn't like a style tag with "margin: 0 0 0 .00001pt" and failed with int32 conversion failure. I've fixed that but now it's falling over on a styletag containing " border: currentColor;" saying it's not a valid integer value. I'm not fussed if I loose some of the formatting for these tags (because they shouldn't be there anyway), but currently the parser just crashes out - correcting all the HTML isn't feasible either..

Is there anyway, I can tell html2openxml to ignore conversion exceptions of style tags?

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