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

Full HTML output for preview #67

Merged
merged 2 commits into from
Aug 25, 2016
Merged

Full HTML output for preview #67

merged 2 commits into from
Aug 25, 2016

Conversation

silum
Copy link
Collaborator

@silum silum commented Aug 25, 2016

The first commit fixes a bug in the HTML text -- the last character output by discount is replaced with a '\0' character. It seems that the buffer is already NULL-terminated, so the NULL is not required.

The second commit changes the text that is passed to QuickLook to be a complete HTML page. Technically the newlines are not required, but it does aid readability when the preview is dumped to file for inspection.

Fixes a bug where the last character of the HTML output is discarded.  The
last character is generally the closing '>' of something like the following:

    <p>This is the last paragraph</p>
Adds HEAD and BODY sections to the resulting HTML.  Technically the newlines
could be discarded, but it aids in readability.
@toland
Copy link
Owner

toland commented Aug 25, 2016

👍

@toland toland merged commit 6552511 into toland:master Aug 25, 2016
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