Revision e91461b3323ad75e02d2f4fa65b8482744f26036 authored by Jeff King on 13 February 2017, 21:05:49 UTC, committed by Junio C Hamano on 13 February 2017, 22:05:40 UTC
The documentation gives an example of the submodule foreach command that uses both backticks and single-quotes. We stick the whole thing inside "+" markers to make it monospace, but the inside punctuation still needs escaping. We handle the backticks with "{backtick}", and use backslash-escaping for the single-quotes. But we missed the escaping on the second quote. Fortunately, asciidoc renders this unbalanced quote as we want (showing the quote), but asciidoctor does not. We could fix it by adding the missing backslash. However, let's take a step back. Even when rendered correctly, it's hard to read a long command stuck into the middle of a paragraph, and the important punctuation is hard to notice. Let's instead bump it into its own single-line code block. That makes both the source and the rendered result more readable, and as a bonus we don't have to worry about quoting at all. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 3b9e3c2
File | Mode | Size |
---|---|---|
.gitignore | -rw-r--r-- | 7 bytes |
README | -rw-r--r-- | 10.6 KB |
TEAMS | -rw-r--r-- | 2.0 KB |
bg.po | -rw-r--r-- | 478.2 KB |
ca.po | -rw-r--r-- | 419.2 KB |
de.po | -rw-r--r-- | 429.2 KB |
fr.po | -rw-r--r-- | 451.4 KB |
git.pot | -rw-r--r-- | 271.7 KB |
is.po | -rw-r--r-- | 3.3 KB |
it.po | -rw-r--r-- | 128.2 KB |
ko.po | -rw-r--r-- | 442.3 KB |
pt_PT.po | -rw-r--r-- | 431.8 KB |
ru.po | -rw-r--r-- | 526.1 KB |
sv.po | -rw-r--r-- | 437.5 KB |
vi.po | -rw-r--r-- | 484.3 KB |
zh_CN.po | -rw-r--r-- | 401.3 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...