jgm/pandoc — pull request #534 by favonia (2012-06-09 23:49:51+00:00)
Title: Linebreak handling control

There are languages (Chinese, Japanese, etc) that do not use spaces to separate words. This is my hack to add a new option `--linebreak` to change the default newline conversion for `markdown` input. It can be either `space` (the default, original behavior), `skip`, or `preserve` now. I'd like to hear your opinions on this and work on this patch more. For example make this option work for other kinds of input.

Ideally we should be able to mark a particular region with a particular language, and the conversion should be context-aware. I only implemented the basic control here, and it's valid only for `markdown` input. For related information one can see [`text-space-collapse` in current CSS3 draft](http://www.w3.org/TR/css3-text/#white-space-collapsing) and [some question on stackoverflow](http://stackoverflow.com/q/8550112/985527).