[debian-edu-commits] debian-edu/ 01/01: Transform <pre> and <code> to moinmoin format.

Petter Reinholdtsen pere at moszumanska.debian.org
Sun Apr 5 20:01:44 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 fea1b50462c590128c5e4dd7a9f47b9f71b3c5c1
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Sun Apr 5 22:01:35 2015 +0200

    Transform <pre> and <code> to moinmoin format.
---
 documentation/itil/convert.pl | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/documentation/itil/convert.pl b/documentation/itil/convert.pl
index e622f83..2b2357b 100755
--- a/documentation/itil/convert.pl
+++ b/documentation/itil/convert.pl
@@ -93,6 +93,13 @@ while (($line = <$fh>)) {
 		we_can_has_tables $line;
 		next;
 	}
+	# moinmon uses {{{ }}} instead of <pre></pre>
+	$line =~ s%<pre>%\{\{\{\n%g;
+	$line =~ s%</pre>%\n\}\}\}%g;
+
+	# moinmon uses ` ` instead of <code></code>
+	$line =~ s%<code>%`%g;
+	$line =~ s%</code>%`%g;
 
 	print $line . "\n";
 }

-- 
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