jyp / dante

389 stars 52 forks source link

Bad formating if no newline present #158

Closed Akyshnik closed 1 year ago

Akyshnik commented 3 years ago

If the eval block is located at the end of the file, calling dante-eval-block on it will result in improper formatting.

E.g. evaluating this block

-- >>> init "foobar"

will result in the following

-- >>> init "foobar"-- "fooba"

instead of expected

-- >>> init "foobar"
-- "fooba"