d38bdadc07099d5c63901f07d3ef7b68297db199
commit d38bdadc07099d5c63901f07d3ef7b68297db199
Author: spesk1 <spesk@pm.me>
Date: Thu Jul 4 14:56:36 2019 +0000

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

diff --git a/README.md b/README.md
index 0eaa7f6..99b5cbb 100644
--- a/README.md
+++ b/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

diff --git a/lib/Gsg/Html.pm b/lib/Gsg/Html.pm
index e9ecd72..dbe1feb 100644
--- a/lib/Gsg/Html.pm
+++ b/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");