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

How do I wrap text output? #341

Open
NullVoxPopuli opened this issue Dec 9, 2015 · 5 comments
Open

How do I wrap text output? #341

NullVoxPopuli opened this issue Dec 9, 2015 · 5 comments

Comments

@NullVoxPopuli
Copy link

For really long lines of text, they keep going beyond the bounds of the views.

gavinlaking added a commit that referenced this issue Dec 9, 2015
Work relating to #341.
@gavinlaking
Copy link
Owner

This issue still needs further investigation, however I did notice an error which I've corrected in 4e2f7fe.

gavinlaking added a commit that referenced this issue Dec 9, 2015
@NullVoxPopuli
Copy link
Author

oh, I didn't know about mode: :wrap -- i'll try that out! :-)

@NullVoxPopuli
Copy link
Author

here is what I found:

        renderer.line do
          stream do
            foreground ALERT
            text msg, mode: :wrap
          end
        end

does not render anything

but this does

        renderer.line do
          stream do
            foreground ALERT
            text msg #, mode: :wrap
          end
        end

am I using the mode option wrong?

@gavinlaking
Copy link
Owner

No, I expect you've found a bug! Something is not quite right in Vedeu::Output::Text and Vedeu::DSL::Text#text. Please feel free to take a look- I will of course, shortly.

@gavinlaking gavinlaking added the bug label Dec 9, 2015
@NullVoxPopuli
Copy link
Author

Woo!

gavinlaking added a commit that referenced this issue Dec 10, 2015
Now works with Views::View and Views::Line models, though still needs more work.

Work related to #341.
gavinlaking added a commit that referenced this issue Dec 12, 2015
Work relating to #341.
gavinlaking added a commit that referenced this issue Dec 12, 2015
gavinlaking added a commit that referenced this issue Dec 12, 2015
Now works with Views::View and Views::Line models, though still needs more work.

Work related to #341.
gavinlaking added a commit that referenced this issue Dec 12, 2015
Work relating to #341.
gavinlaking added a commit that referenced this issue Dec 12, 2015
gavinlaking added a commit that referenced this issue Dec 12, 2015
Now works with Views::View and Views::Line models, though still needs more work.

Work related to #341.
gavinlaking added a commit that referenced this issue Dec 13, 2015
Work relating to #341.
gavinlaking added a commit that referenced this issue Dec 13, 2015
gavinlaking added a commit that referenced this issue Dec 13, 2015
Now works with Views::View and Views::Line models, though still needs more work.

Work related to #341.
gavinlaking added a commit that referenced this issue Jan 31, 2016
These methods will control the :wordwrap option on the view. The behaviour will
soon be changed to wordwrap by default, meaning that #no_wordwrap! should be
used to specifically not wordwrap content in a given interface.

Work relating to #341.
gavinlaking added a commit that referenced this issue Jan 31, 2016
gavinlaking added a commit that referenced this issue Jan 31, 2016
Default wordwrap to true.

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

No branches or pull requests

2 participants