3 ms·
Tried to replicate the technique in a minimal example: https://no-gravity.github.io/html-quine/index.html https://no-gravity.github.io/html-quine/index.html I
by no_gravity 7y ago
Tried to replicate the technique in a minimal example:
https://no-gravity.github.io/html-quine/index.html https://no-gravity.github.io/html-quine/index.html
I am getting some additional empty lines in the output. And the closing html tag is missing. Any ideas why?
- cocochanel 7y agoRemove the _white-space: pre;_ from your style.
- no_gravity 7y agoThen the empty lines that are in the source are missing in the output. Looks like the Show HN avoids this by not having empty lines in text.
- no_gravity 7y agoUpon closer inspection, I now see that the Show HN also has additional empty lines in the rendered view. End of the source: </body> </html> Rendered in the browser as: </body> </html>
- LeonB 7y agoI get that extra spacing by using: margin:1.5em 0 When there was no margin the text was quite ugly and hard to read. Then tried margin 1em and it was better. Pushing it out to 1.5em really did the trick.