[debian-edu-commits] debian-edu/ 04/05: Convert URLs too.

Petter Reinholdtsen pere at moszumanska.debian.org
Fri Oct 2 18:55:49 UTC 2015


This is an automated email from the git hooks/post-receive script.

pere pushed a commit to branch master
in repository debian-edu-itil-doc-nb.

commit a6c531a829e345aada337614360748905e72415f
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Fri Oct 2 20:48:56 2015 +0200

    Convert URLs too.
---
 documentation/itil/convert.pl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/documentation/itil/convert.pl b/documentation/itil/convert.pl
index 6686c45..e03f4d4 100755
--- a/documentation/itil/convert.pl
+++ b/documentation/itil/convert.pl
@@ -66,6 +66,8 @@ sub filter_line {
 	$line =~ s%</ref>%)>>%g;
 	$line =~ s%<references */>%%g;
 	$line =~ s%\&quot\;%"%g;
+	$line =~ s/\[(https?:[^\]]+) \]/$1/g;
+	$line =~ s/\[\[?(https?:[^\] ]+) ([^\]]+)\]\]?/[[$1|$2]]/g;
 	return $line;
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/upstream/debian-edu-itil-doc-nb.git



More information about the debian-edu-commits mailing list