From b423f39484bc5e72718bf046c7ebf837df2d4869 Mon Sep 17 00:00:00 2001 From: Arnaud Legrand Date: Thu, 21 Mar 2019 16:48:21 +0100 Subject: [PATCH] Cosmetics --- bin/pandoc_fixer.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/pandoc_fixer.pl b/bin/pandoc_fixer.pl index 1cd010f..82e95a0 100755 --- a/bin/pandoc_fixer.pl +++ b/bin/pandoc_fixer.pl @@ -23,15 +23,17 @@ open INPUT, $input or die; my($input_path)=$input; $input_path =~ s|/[^/]*$||g; # print $input."\n\n"; + my($url_path) = "https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/blob/master/".$input_path; +my($gitlab_origin)= "https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/blob/master/"; while(defined($line=)) { - $line =~ s|https://gitlab.inria.fr/learninglab/|https://learninglab.gitlabpages.inria.fr/|g; ## Not such a good idea! +# $line =~ s|https://gitlab.inria.fr/learninglab/|https://learninglab.gitlabpages.inria.fr/|g; ## Not such a good idea! if($input=~ /_fr.html/) { - $line =~ s||Les sources de ce document sont disponibles sur gitlab.|g; + $line =~ s||Les sources de ce document sont disponibles sur gitlab.|g; } else { - $line =~ s||The source of this this document is available on gitlab.|g; + $line =~ s||The source of this this document is available on gitlab.|g; } $line =~ s|---

|
|g; $line =~ s|Date:.*Date: $gitdate