Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overzealous comment overwriting #61

Closed
fosskers opened this issue Jan 3, 2018 · 2 comments
Closed

Overzealous comment overwriting #61

fosskers opened this issue Jan 3, 2018 · 2 comments

Comments

@fosskers
Copy link

fosskers commented Jan 3, 2018

If you write a Dante eval block above a legitimate comment and then evaluate it, the legit comment will be overwritten:

-- >>> foo 5
-- | Best function
foo :: Int -> String
foo = show

becomes

-- >>> foo 5
-- "5"
foo :: Int -> String
foo = show

whereas I expected:

-- >>> foo 5
-- "5"
-- | Best function
foo :: Int -> String
foo = show
@jyp
Copy link
Owner

jyp commented Jan 5, 2018

You should use a blank line to separate the eval block from the next comment.

@jyp jyp closed this as completed Jan 5, 2018
@fosskers
Copy link
Author

fosskers commented Jan 5, 2018

Ok thanks, I'll keep that in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants