From: Jeff King Date: Tue, 28 Jun 2011 22:47:17 GMT Subject: Re: [PATCH] Documentation: quote double-dash in " -- " for AsciiDoc Message-ID: <20110628224717.GC4192@sigill.intra.peff.net> In-Reply-To: <20110628171748.GA11485@elie> On Tue, Jun 28, 2011 at 12:17:49PM -0500, Jonathan Nieder wrote: > As explained in v1.7.3-rc0~13^2 (Work around em-dash handling in newer > AsciiDoc, 2010-08-23), outside of verbatim environments, newish > versions of AsciiDoc will convert double hyphens to en dashes. Use > the litdd syntax introduced by that patch to avoid such misformatting > in sentences where "--" represents the two-character "end of options" > argument that separates revision names from filename patterns. Ugh. I just did a similar thing for "->". I really wish asciidoc would not expand symbols inside backticks in paragraph mode. > -to that of the last commit with `git reset HEAD -- `, > +to that of the last commit with `git reset HEAD {litdd} `, Does \-- work? That seems way more readable to me for people viewing the source. -Peff