working_dir=$(pwd)
cd "$generated_files_dir"
redo
-cp "$working_dir/$expected_files_dir"/test.md .
+cp "$working_dir/$expected_files_dir"/te\"\;st.md .
redo
cp "$working_dir/$expected_files_dir"/bar\ baz.md .
redo
cat "$cmp_file" | \
sed 's/[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}/IGNORE/g' \
> "$generated_file"
-# cat "$cmp_file" | \
-# sed 's/[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}/IGNORE/g' | \
-# sed 's/IGNORET[0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\}Z/IGNORE/g' | \
-# sed 's/IGNORE [0-9]\{2\}:[0-9]\{2\} (UTC)/IGNORE/g' \
-# > "$generated_file"
diff_test "$file" "$generated_file"
done
<id>urn:uuid:IGNORE</id>
<updated>IGNORE</updated>
<published>IGNORE</published>
-<link href="http://example.org/test.html" rel="alternate" type="text/html" />
+<link href="http://example.org/te%26quot%3Bst.html" rel="alternate" type="text/html" />
<content type="html">
<p>foo</p>
<h2 id="bar">bar</h2>
<ul>
<li><a href="foo.html">a title with some nasty characters: &<>"' %BODY%</a> (<time>IGNORE</time>)</li>
<li><a href="bar%20baz.html">foo</a> (<time>IGNORE</time>)</li>
-<li><a href="test.html">foo <em>bar</em> <strong>baz</strong></a> (<time>IGNORE</time>)</li>
+<li><a href="te%26quot%3Bst.html">foo <em>bar</em> <strong>baz</strong></a> (<time>IGNORE</time>)</li>
</ul>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<style type="text/css">
+h1 { font-size: 2em; }
+h2 { font-size: 1.5em; }
+h3 { font-size: 1.17em; }
+h4 { font-size: 1.12em; }
+h5 { font-size: .83em; }
+h6 { font-size: .75em; }
+header h1 { margin-bottom: 0.1em; }
+header p { margin: 0; }
+</style>
+<title>Yet another blog – foo bar baz</title>
+<a href="index.html">Yet another blog</a>
+<article>
+<header>
+<h1>foo <em>bar</em> <strong>baz</strong></h1>
+<p>created: <time>IGNORE</time> / last update: <time>IGNORE</time></p>
+</header>
+<p>foo</p>
+<h2 id="bar">bar</h2>
+<p>baz</p>
+<footer>
+Links back:
+<ul>
+</ul>
+</footer>
+</article>
\ No newline at end of file
--- /dev/null
+%foo *bar* **baz**
+foo
+
+# bar
+
+baz
+++ /dev/null
-<!DOCTYPE html>
-<meta charset="UTF-8">
-<style type="text/css">
-h1 { font-size: 2em; }
-h2 { font-size: 1.5em; }
-h3 { font-size: 1.17em; }
-h4 { font-size: 1.12em; }
-h5 { font-size: .83em; }
-h6 { font-size: .75em; }
-header h1 { margin-bottom: 0.1em; }
-header p { margin: 0; }
-</style>
-<title>Yet another blog – foo bar baz</title>
-<a href="index.html">Yet another blog</a>
-<article>
-<header>
-<h1>foo <em>bar</em> <strong>baz</strong></h1>
-<p>created: <time>IGNORE</time> / last update: <time>IGNORE</time></p>
-</header>
-<p>foo</p>
-<h2 id="bar">bar</h2>
-<p>baz</p>
-<footer>
-Links back:
-<ul>
-</ul>
-</footer>
-</article>
\ No newline at end of file
+++ /dev/null
-%foo *bar* **baz**
-foo
-
-# bar
-
-baz