[gtk-doc] test: some repro for #795744
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] test: some repro for #795744
- Date: Sun, 6 May 2018 19:29:26 +0000 (UTC)
commit 232645974e63fd1558e95ab6c7fb2a17105a63d7
Author: Stefan Sauer <ensonic users sf net>
Date: Sun May 6 21:03:24 2018 +0200
test: some repro for #795744
This works though, where in the report the first '<' of the literal section
is mangled.
tests/gobject/src/giface.c | 2 ++
tests/mk_to_db.py | 6 ++++++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/tests/gobject/src/giface.c b/tests/gobject/src/giface.c
index 10625ce..5378a80 100644
--- a/tests/gobject/src/giface.c
+++ b/tests/gobject/src/giface.c
@@ -17,6 +17,8 @@
*
* Just incase you wonder, special caracters can be escaped with a \ like in \%
* or \# or even \@.
+ *
+ * We also support verbatim spans - lets test escaping of a `<tag>` block.
*/
/**
* SECTION:iface2
diff --git a/tests/mk_to_db.py b/tests/mk_to_db.py
index 8cc5978..133509a 100755
--- a/tests/mk_to_db.py
+++ b/tests/mk_to_db.py
@@ -210,6 +210,12 @@ accessed via the following functions.</para>
output = md_to_db.MarkDownParse(input_, "")
self.assertEqual(expected, output)
+ def test_verbatim(self):
+ input_ = "a `<child>` element"
+ expected = '<para>a <literal><child></literal> element</para>\n'
+ output = md_to_db.MarkDownParse(input_, "")
+ self.assertEqual(expected, output)
+
def test_code(self):
input_ = """\
|[<!-- language="C" -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]