greenh / CJD

CJD is a system for documenting Clojure programs through the use of structured comments embedded in Clojure source code.
Other
12 stars 0 forks source link

Two consecutive phrasing elements are run together #5

Closed greenh closed 12 years ago

greenh commented 12 years ago

A phrase like

@(arg whatever) @(u something) 

produces "whateversomething"—no space.

greenh commented 12 years ago

Here's a nasty little test piece:

@(i Or so we think... yes?) @(b Or maybe not!) But the we want to be able to write @(sc Baba)-@(i Yaga), yes?

Here the first two are indeed run together, and we don't want 'em to be; while the latter stuff we do want without spaces, and we don't get them.

Aaahh... the default should be to do the separation, so the latter is OK; if we want Baba-Yaga, we use

@(sc Baba) :nb - :nb @(i Yaga)

...and that in fact works. So, the original problem is the problem. ...and it's miserable to solve, given the current implementation. But inserting a :br now seems to work.

@(i Or so we think... yes?) :br @(b Or maybe not!) But the we want to be able to write @(sc Baba) :nb — :nb @(b Yaga), yes?