File: code_blocks_regression.html

package info (click to toggle)
ruby-ronn 0.10.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 764 kB
  • sloc: ruby: 1,587; sh: 22; makefile: 9
file content (38 lines) | stat: -rw-r--r-- 1,059 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<div class='mp'>

<h1 id="Example-Quote-Error">Example Quote Error</h1>
<h2 id="In-the-text-">In the text:</h2>

<p>This is Renzo's code.</p>

<p>Debian's lintian returns the following warning:
acute-accent-in-manual-page</p>

<p>This manual page uses the ' groff sequence. Usually, the intent to
generate an apostrophe, but that sequence actually renders as a an acute
accent.</p>

<p>For an apostrophe or a single closing quote, use plain '. For single
opening quote, i.e. a straight downward line ' like the one used in
shell commands, use \(aq.</p>

<h2 id="Basic-code-block">Basic code block</h2>

<p>The situation is even worse when there are code blocks, mainly code
chunks or commands. E.g., copy-paste fails.</p>

<p>Type the following command <code>echo 'Hello World'</code>.</p>

<pre><code class="language-bash">$ echo 'hello world'
</code></pre>

<p>The following code cannot be compiled:</p>
<pre><code class="language-C">int main() {
	int example = 42;
	switch (example) {
		case 'a': return 10;
		default: return 42;
	}
}
</code></pre>
</div>