diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2014-12-30 13:41:02 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2014-12-30 13:41:02 +0100 |
commit | feca80b65581e688b1e9a3e807dfce2e17fd4a13 (patch) | |
tree | f090f9a361d90a5b9b8e554938933b8be7a6530c /test/data | |
parent | 8ef68182c02d8ec8fc33d0de0b7fcdef183e7ee7 (diff) | |
download | dokka-feca80b65581e688b1e9a3e807dfce2e17fd4a13.tar.gz dokka-feca80b65581e688b1e9a3e807dfce2e17fd4a13.tar.bz2 dokka-feca80b65581e688b1e9a3e807dfce2e17fd4a13.zip |
add test for html escaping; fix special characters eaten from output
Diffstat (limited to 'test/data')
-rw-r--r-- | test/data/format/htmlEscaping.html | 12 | ||||
-rw-r--r-- | test/data/format/htmlEscaping.kt | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test/data/format/htmlEscaping.html b/test/data/format/htmlEscaping.html new file mode 100644 index 00000000..4f1409c4 --- /dev/null +++ b/test/data/format/htmlEscaping.html @@ -0,0 +1,12 @@ +<HTML> +<HEAD> +</HEAD> +<BODY> +<a href="out.html">test</a> / <a href="out.html"></a> / <a href="out.html">x</a><br/> +<br/> +<h1>x</h1> +<pre><code><span class="keyword">fun </span><span class="symbol"><</span><span class="identifier">T</span><span class="symbol">> </span><span class="identifier">x</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">T?</span></code></pre><p>Special characters: < is "less than", > is "greater than", & is "ampersand"</p> +<br/> +<br/> +</BODY> +</HTML> diff --git a/test/data/format/htmlEscaping.kt b/test/data/format/htmlEscaping.kt new file mode 100644 index 00000000..8778d8a5 --- /dev/null +++ b/test/data/format/htmlEscaping.kt @@ -0,0 +1,4 @@ +/** + * Special characters: < is "less than", > is "greater than", & is "ampersand" + */ +fun x<T>(): T? = null |