From 64381acf1de81bc5e26a51a610f66b256f5d3f4f Mon Sep 17 00:00:00 2001 From: Arnaud Legrand Date: Fri, 22 Mar 2019 09:26:20 +0100 Subject: [PATCH] HTML cosmetics --- bin/pandoc_fixer.pl | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/bin/pandoc_fixer.pl b/bin/pandoc_fixer.pl index 61af3ff..bdc1c27 100755 --- a/bin/pandoc_fixer.pl +++ b/bin/pandoc_fixer.pl @@ -43,16 +43,22 @@ open OUTPUT, "> ".$output or die; while(defined(my $line=)) { + if($line =~ /

AUTHOR:/) { next; } + if($line =~ /

|Les sources de ce document sont disponibles sur gitlab.|g; + $line .= "
Version du $gitdate.

\n" } else { $line =~ s||The source of this this document is available on gitlab.|g; + $line .= "
Last version: $gitdate

\n" } + $line =~ s|TOC||g; + $line =~ s|---

|
|g; - $line =~ s|Date:.*Date: $gitdateTITLE:\(.*\)TITLE:$1)) { # if($line =~ /img src="([^%][^"]*)"/) { # $line = "\t".$line; # } - if($line =~ /

AUTHOR:/) { next; } print OUTPUT $line; } -- 2.18.1