shithub: shithub

Download patch

ref: da9ed9b14e04f67be47a83889945e05ecd6366a6
parent: ee6ed04e07614f72cd403d102742646a551fa1fe
author: phil9 <telephil9@gmail.com>
date: Sun Jan 31 05:41:24 EST 2021

code viewer: improve rendering

	fix tabs not being rendered properly
	improve css to have some padding within the box and fix the css border definition

--- a/shithub
+++ b/shithub
@@ -14,6 +14,7 @@
 		s/>/\&gt;/g;
 		s/"/\&quot;/g;
 		s/''/\&#39;/g
+		s/	/\&nbsp;\&nbsp;\&nbsp;\&nbsp;/g
 	' $*
 }
 
@@ -70,8 +71,9 @@
 
 			#code{
 				background: #ffffea;
-				border: #99994cff;
+				border: 1px solid #99994c;
 				overflow: auto;
+				padding: 4px;
 			}
 		</style>
 	 	<link rel="alternate" type="application/rss+xml" href="feed.rss" title="rss">