Left-pad <pre> instead of spaces

This commit is contained in:
Rupus Reinefjord 2022-05-09 20:09:31 +02:00
parent a584424972
commit fd56a2aa79

View file

@ -33,6 +33,7 @@
pre { pre {
overflow-x: auto; overflow-x: auto;
padding-left: 1rem;
} }
</style> </style>
</head> </head>
@ -77,20 +78,17 @@
<p>Being able to do this makes me happy, though:</p> <p>Being able to do this makes me happy, though:</p>
<pre><code> <pre><code>$ nc reinefjord.net 80
$ nc reinefjord.net 80 GET / HTTP/1.0
GET / HTTP/1.0 Host: www.reinefjord.net
Host: www.reinefjord.net
HTTP/1.1 200 OK HTTP/1.1 200 OK
Server: nginx/1.14.2 Server: nginx/1.14.2
Date: Mon, 09 May 2022 16:43:00 GMT Date: Mon, 09 May 2022 16:43:00 GMT
Content-Type: text/html Content-Type: text/html
Content-Length: 2262 Content-Length: 2262
Last-Modified: Sat, 25 Dec 2021 11:29:26 GMT Last-Modified: Sat, 25 Dec 2021 11:29:26 GMT
... ...</code></pre>
</code></pre>
</main> </main>