Skip to content

Commit

Permalink
Merge branch 'master' of github.com:imazen/repositext
Browse files Browse the repository at this point in the history
  • Loading branch information
jhund committed Jul 5, 2016
2 parents 7b7e3b0 + f2dc8f3 commit dc3cc6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kramdown/converter/latex_repositext.rb
Expand Up @@ -405,7 +405,7 @@ def post_process_latex_body(latex_body)
no_break_following_chars = Regexp.escape(
[Repositext::S_QUOTE_CLOSE, Repositext::D_QUOTE_CLOSE, ')?,!'].join
)
# We only want to allow linebreak after line_breakable_chars so we insert \nolinebreak before.
# We only want to allow linebreak _after_ line_breakable_chars so we insert \nolinebreak _before_.
# TODO: Move the Editor and Translator abbreviation exceptions to the langauge class.
lb.gsub!(
/([#{ line_breakable_chars }])(?!([#{ no_break_following_chars }]|(ed\.|n\.d\.t\.)))/i,
Expand Down

0 comments on commit dc3cc6d

Please sign in to comment.