Permalink
Browse files

Have spaces around the en-dash in LaTeX

  • Loading branch information...
1 parent d75b708 commit e594a63c689be86e186bb0f73de380eb2119daaf Benjamin Quorning committed with Feb 10, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/redcloth/formatters/latex.rb
  2. +2 −2 lib/redcloth/formatters/latex_entities.yml
  3. +1 −1 spec/fixtures/basic.yml
@@ -253,7 +253,7 @@ def emdash(opts)
end
def endash(opts)
- "--"
+ " -- "
end
def arrow(opts)
@@ -28,9 +28,9 @@ mdash: ---
#EM DASH
"8212": ---
#EN DASH
-ndash: --
+ndash: ' -- '
#EN DASH
-"8211": --
+"8211": ' -- '
#HYPHEN
"8208": "-"
#OPEN BOX
View
@@ -173,7 +173,7 @@ name: single hyphens with spaces
desc: Single hyphens are replaced with en-dashes if they are surrounded by spaces.
in: Observe - tiny and brief.
html: <p>Observe &#8211; tiny and brief.</p>
-latex: "Observe--tiny and brief.\n\n"
+latex: "Observe -- tiny and brief.\n\n"
---
name: midword hyphens
desc: Single hyphens are left alone if not surrounded by spaces.

0 comments on commit e594a63

Please sign in to comment.