Browse Source

Updating README and reversing changes to make HTML source more readable (causing issues with rendering due to use of <pre> blocks)

spesk1 4 years ago
parent
commit
d38bdadc07
2 changed files with 5 additions and 5 deletions
  1. 2 2
      README.md
  2. 3 3
      lib/Gsg/Html.pm

+ 2 - 2
README.md

@@ -13,7 +13,7 @@
 DONE:
 * Generate top level index with links to all projects
 * Generate project specific index with links to git log/diffs and file content of repo
-* Extremely basic markdown parser (only supports headings, non nested bullets and backticks code blocks)
+* Extremely basic markdown parser (only supports headings, non nested bullets, backticks code blocks, links and strikethru)
 * Line numbers for file browsing
 * Diff highlighting for log
 * Show git:// address for cloning (configurable via config file)
@@ -23,7 +23,7 @@ TODO:
 * Get diff stat for top of log index links
 * Code needs to be more robust / handle failure cases
 * Need to recurse git home, right now will only pull dirs in root of git home
-* README.md markdown renderer/parser / display in project index
+* README.md markdown renderer/parser / display in project index (Halfway / in progress)
 * (Stretch Goal) HTML based syntax highlighting for files
 * View history of files
 

+ 3 - 3
lib/Gsg/Html.pm

@@ -94,17 +94,17 @@ sub gen_line_nums($$$) {
 	# Might be a better way to do this? TODO
 	open my $fh, '>>', \$html_file or die "Can't open variable: $!";
 	
-	print $fh "<!DOCTYPE html><html><b>$filename</b><hr/><div id=\"content\"><pre id=\"blob\">\n";
+	print $fh "<!DOCTYPE html><html><b>$filename</b><hr/><div id=\"content\"><pre id=\"blob\">";
 	my $line_counter = 1;
 	foreach my $line ( split("\n", $raw_file) ) {
 		if ( $line ne "" ) {
 			$line = check_for_html($line);
 		}
-		print $fh "<a href=\"\#l$line_counter\" class=\"line\" id=\"l$line_counter\">$line_counter</a>\t$line<br>\n";
+		print $fh "<a href=\"\#l$line_counter\" class=\"line\" id=\"l$line_counter\">$line_counter</a>\t$line<br>";
 		$line_counter++;
 	}
 
-	print $fh "</pre></div><html>\n";
+	print $fh "</pre></div><html>";
 	close $fh;
 
 	$logger->info("Generated line numbers for $filename");