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

Text wrapping is adding new lines into the output #64

Open
juliaschell opened this issue Jun 24, 2020 · 2 comments
Open

Text wrapping is adding new lines into the output #64

juliaschell opened this issue Jun 24, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@juliaschell
Copy link

juliaschell commented Jun 24, 2020

I have an editable field in my UI for users to enter a description for what they're doing, and text wrapping is turned on. When I retrieve and print the buffer as a string at the end, there's a new line where the text wrapped in the UI.

Here's my code for the view:

if v, err := g.SetView("Description", 0, titleHeight+1, twothrdwiDth-1, titleHeight+1+descHeight, 0); err != nil {
		v.Highlight = false
		v.Frame = true
		v.Title = " Description "
		v.SelBgColor = gocui.ColorRed
		v.SelFgColor = gocui.ColorBlack
		v.Editable = true		
                v.Wrap = true
	}

Screen Shot 2020-06-24 at 12 58 47 PM

Screen Shot 2020-06-24 at 12 59 28 PM

@juliaschell juliaschell added the bug Something isn't working label Jun 24, 2020
@mjarkk

This comment has been minimized.

@mjarkk
Copy link
Member

mjarkk commented Dec 24, 2020

Sorry for the comment above :(,
We just released 2 beta releases and in those we changed the way text is rendered so your issue might be solved now.
Are you open for trying the latest beta release v1.0.0-beta-2 and check if the issue is resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants