diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-05-15 10:41:35 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-05-15 10:41:35 +0200 |
commit | c0a5aa5f5ff38ac7b8a650b07c134b7b86deb27f (patch) | |
tree | 62cd011c4bd84bba725076a12bc5b908ac281441 /tests/Framework/Text2Html.php | |
parent | f0992426d9c5af5046c76a2da86183d0c3a40084 (diff) |
Improved handling of new-lines in quoted paragraphs on text2html conversion
Diffstat (limited to 'tests/Framework/Text2Html.php')
-rw-r--r-- | tests/Framework/Text2Html.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/Framework/Text2Html.php b/tests/Framework/Text2Html.php index af2604d8e..8d091d5c9 100644 --- a/tests/Framework/Text2Html.php +++ b/tests/Framework/Text2Html.php @@ -41,6 +41,7 @@ class Framework_Text2Html extends PHPUnit_Framework_TestCase $data[] = array(">aaaa \n>aaaa", "<blockquote>aaaa_<br>aaaa</blockquote>", $options); $data[] = array(">aaaa\n>aaaa", "<blockquote>aaaa<br>aaaa</blockquote>", $options); $data[] = array(">aaaa \n>bbbb\ncccc dddd", "<blockquote>aaaa_<br>bbbb</blockquote>cccc_dddd", $options); + $data[] = array("aaaa-bbbb/cccc", "aaaa-⁠bbbb/⁠cccc", $options); $options['flowed'] = true; @@ -63,6 +64,16 @@ class Framework_Text2Html extends PHPUnit_Framework_TestCase $data[] = array(">aaaa\n>aaaa", "<blockquote>aaaa<br>aaaa</blockquote>", $options); $data[] = array(">aaaa \n>bbbb\ncccc dddd", "<blockquote>aaaa bbbb</blockquote>cccc_dddd", $options); + $options['flowed'] = false; + $options['wrap'] = true; + + $data[] = array(">>aaaa bbbb\n>>\n>>>\n>cccc\n\ndddd eeee", + "<blockquote><blockquote>aaaa bbbb<br><br><blockquote><br></blockquote></blockquote>cccc</blockquote><br>dddd eeee", $options); + $data[] = array("\n>>aaaa\n\ndddd", + "<br><blockquote><blockquote>aaaa</blockquote></blockquote><br>dddd", $options); + $data[] = array("aaaa\n>bbbb\n>cccc\n\ndddd\n>>test", + "aaaa<blockquote>bbbb<br>cccc</blockquote><br>dddd<blockquote><blockquote>test</blockquote></blockquote>", $options); + return $data; } |