BarryServer : Git

All the code for all my projects
// BarryServer : Git / barryserver-git / commit / f8b240d9e8769fe68d7c59169c3ba45660b11399

// Related

barryserver-git

Barry Fixed list items in README documents f8b240d (4 years, 1 month ago)
diff --git a/git.php b/git.php
index b7eba44..df4c237 100644
--- a/git.php
+++ b/git.php
@@ -180,6 +180,9 @@ ob_start();
 			hr.readme {
 				border: 1px solid white;
 			}
+			li.readme {
+				margin-left: 40px;
+			}
 
 			/* Scrollbar */
 			::-webkit-scrollbar {width: 10px; height: 10px;}
@@ -275,7 +278,7 @@ ob_start();
 						$readme = preg_replace("/`([^`]+)`/","<span style=\"color:magenta;font-style:italic\">$1</span>",$readme);
 						$readme = preg_replace("/(^|\n)---($|\n)/","<br><hr class=\"readme\">",$readme);
 						$readme = preg_replace("/\n\n/","<br>",$readme);
-						$readme = preg_replace("/(^|\n) - (.*)/","<li>$2</li>",$readme);
+						$readme = preg_replace("/(^|\n) - (.*)/","<li class=\"readme\">$2</li>",$readme);
 						$readme = preg_replace("/\[img src=\"([^\"]+)\"\]/","<img src=\"$1\" class=\"readme\" style=\"max-width:100%\" />",$readme);
 						$readme = preg_replace("/\[link src=\"([^\"]+)\"\]/","<a href=\"$1\" class=\"readme\">$1</a>",$readme);
 						echo "		<br>\n		".$readme;