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

fix for file utility html detection bug #102

Merged
merged 1 commit into from
Sep 1, 2016

Conversation

derDaywalker
Copy link

proposed fix for bug #95

Up until now if mime type starts with 'text/' the format gets hardcoded to 'Plain text'.
But according to fileutility_to_fits.xslt the format has to be 'HTML document text',
otherwise the format will be empty.

fix:
1.) don't hardcode everything that starts with 'text/' (if necessary, only for 'text/plain')
2.) write regex inside fileutility_to_fits.xslt for text/html, because different
file utility versions might output different output strings

proposed fix for bug harvard-lts#95

Up until now if mime type starts with 'text/' the format gets hardcoded to 'Plain text'.
But according to fileutility_to_fits.xslt the format has to be 'HTML document text',
otherwise the format will be empty.

fix:
1.) don't hardcode everything that starts with 'text/' (if necessary, only for 'text/plain')
2.) write regex inside fileutility_to_fits.xslt for text/html, because different
file utility versions might output different output strings
@daveneiman daveneiman merged commit b264e5f into harvard-lts:dev Sep 1, 2016
@daveneiman
Copy link
Contributor

Thanks for your contribution. This will be a part of the upcoming FITS release.

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

Successfully merging this pull request may close these issues.

2 participants