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

Multi-line markup #41

Closed
mitchellwrosen opened this issue Jan 22, 2016 · 1 comment
Closed

Multi-line markup #41

mitchellwrosen opened this issue Jan 22, 2016 · 1 comment

Comments

@mitchellwrosen
Copy link

Hi, not sure if this behavior is intended...

{-# LANGUAGE OverloadedStrings #-}

-- hi
-- there
main = simpleMain (txt "hi\nthere")

-- hi...
main = simpleMain (markup ("hi\nthere" @@ bg blue))

Multi-line markdown appears to just put an ellipsis where the first newline should go.

@jtdaugherty
Copy link
Owner

Thanks! You're right, that isn't the intended behavior. The ellipsis comes from vty not dealing with newlines, but the real problem is that the markup functions aren't multiline-aware. I'll fix it in the next few days!

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