Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Nonbreaking space in LaTeX is '~' #49

Merged
merged 1 commit into from

2 participants

@hperl

LaTeX chokes on \nolinebreak{} if there is no line to end. ~ adds a 'normal' space, makes no trouble with empty lines, and generally fits the concept of a non-breaking space.

@hperl hperl Convert non-breaking space to ~
LaTeX chokes on \nolinebreak{} if there is no line to end. ~ adds a 'normal' space, makes no trouble with empty lines, and generally fits the concept of a non-breaking space.
f833528
@gettalong gettalong was assigned
@gettalong gettalong merged commit f833528 into gettalong:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 26, 2013
  1. @hperl

    Convert non-breaking space to ~

    hperl authored
    LaTeX chokes on \nolinebreak{} if there is no line to end. ~ adds a 'normal' space, makes no trouble with empty lines, and generally fits the concept of a non-breaking space.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/kramdown/converter/latex.rb
View
2  lib/kramdown/converter/latex.rb
@@ -404,7 +404,7 @@ def convert_strong(el, opts)
402 => ['\textflorin', 'mathcomp'],
381 => ['\v{Z}'],
382 => ['\v{z}'],
- 160 => ['\nolinebreak'],
+ 160 => ['~'],
161 => ['\textexclamdown'],
163 => ['\pounds'],
164 => ['\currency', 'wasysym'],
Something went wrong with that request. Please try again.