diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2022-01-20 09:17:34 -0800 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2022-01-20 09:17:34 -0800 |
| commit | ef8135b4a7cd6d63d49bc25977d015075337c1a6 (patch) | |
| tree | ba8d9b83e77951f1da1b0862b6b2a7eab7bca319 /test/command | |
| parent | d9ec95e7abc71a642dd8e53b92f2bd3ae1609f10 (diff) | |
HTML writer: don't break lines inside code elements.
With the new (default) line wrapping of HTML, in
conjunction with the default CSS which includes
`code { whitespace: pre-wrap; }`, spurious line
breaks could be introduced into inline code.
Closes #7858.
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/3534.md | 13 | ||||
| -rw-r--r-- | test/command/7858.md | 6 |
2 files changed, 11 insertions, 8 deletions
diff --git a/test/command/3534.md b/test/command/3534.md index 41bf9a5ff..1ba332683 100644 --- a/test/command/3534.md +++ b/test/command/3534.md @@ -3,8 +3,7 @@ I want to explain the interface of \lstinline[language=Java]{public class MyClass}. ^D <p>I want to explain the interface of <code -class="sourceCode java"><span class="kw">public</span> <span -class="kw">class</span> MyClass</code>.</p> +class="sourceCode java"><span class="kw">public</span> <span class="kw">class</span> MyClass</code>.</p> ``` @@ -12,8 +11,8 @@ class="kw">class</span> MyClass</code>.</p> % pandoc -f latex -t html I want to explain the interface of \lstinline{public class MyClass}. ^D -<p>I want to explain the interface of <code>public class -MyClass</code>.</p> +<p>I want to explain the interface of +<code>public class MyClass</code>.</p> ``` @@ -47,8 +46,7 @@ I want to explain the interface of \lstinline[language=Java]{public class MyClas I want to explain the interface of \mintinline{java}{public class MyClass}. ^D <p>I want to explain the interface of <code -class="sourceCode java"><span class="kw">public</span> <span -class="kw">class</span> MyClass</code>.</p> +class="sourceCode java"><span class="kw">public</span> <span class="kw">class</span> MyClass</code>.</p> ``` @@ -57,8 +55,7 @@ class="kw">class</span> MyClass</code>.</p> I want to explain the interface of \mintinline{java}|public class MyClass|. ^D <p>I want to explain the interface of <code -class="sourceCode java"><span class="kw">public</span> <span -class="kw">class</span> MyClass</code>.</p> +class="sourceCode java"><span class="kw">public</span> <span class="kw">class</span> MyClass</code>.</p> ``` diff --git a/test/command/7858.md b/test/command/7858.md new file mode 100644 index 000000000..dc2f107ec --- /dev/null +++ b/test/command/7858.md @@ -0,0 +1,6 @@ +``` +% pandoc -t html --columns=50 --wrap=auto +`neuth asontue stheuosnt aeosunth asnoetuh asneotuh snatehou snatoehu sntahe ousntahoe unstaheou sntaheou aoeu sthoeu sntaoeusnth ansoetuhs atoeuh saonteu` +^D +<p><code>neuth asontue stheuosnt aeosunth asnoetuh asneotuh snatehou snatoehu sntahe ousntahoe unstaheou sntaheou aoeu sthoeu sntaoeusnth ansoetuhs atoeuh saonteu</code></p> +``` |
