-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add a newline after the doctype declaration #58
Comments
The linked commit makes It's technically a breaking change, because it changes ([> content_signal ] as 'a, 's) stream -> ('a, 's) stream to ([> content_signal | `Doctype of doctype ] as 'a, 's) stream -> ('a, 's) stream This should affect primarily users of There may be other ways to implement and/or type this. However, I am leaning instead towards eliminating all this subtyping in the interface, and using just |
When people write HTML by hand, traditionally they put a newline between the doctype declaration and the
<html>
tag.With long doctypes of HTML 4.01 and XHTML 1.x, that was a necessity for readability I guess, but it still looks more aesthetically pleasing even with much shorter HTML5 doctype.
Markup.ml, however, outputs them on the same line:
<!DOCTYPE html><html>
.The text was updated successfully, but these errors were encountered: