Skip to content

Instantly share code, notes, and snippets.

@ccoupe
Created January 19, 2015 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ccoupe/cb793fd29b94c7bc2d97 to your computer and use it in GitHub Desktop.
Save ccoupe/cb793fd29b94c7bc2d97 to your computer and use it in GitHub Desktop.
working wraps.
Shoes.app do
p1 = "1. Word wrap on the console may be better but it's not working! I suspect the stacks and flows in log.rb need to be examined so they do the right thing - the definition of 'right' is not clear to me."
p2 = "2. Since the behavior is not platform dependent it must be in the next higher layer of shoes, in the general layout abstractions and textblock/styles and it has probably existed since Shoes 2. Which leads to a couple more questions. What does Shoes4 do with our snippets? I know they struggle with styled text segments too. Is there a compatibility break with Shoes 4? If so, should Shoes 3.2 emulate the behavior of 4 or stick with the old bugs?"
p3 = "3. Most folks would see the bugs, sigh and just add some stacks and flows that work for them. That would be my first solution to the console layout since in the big scheme the perfect console layout isn't all that important."
p4 = "4. Your assessment is sound to me as it must be in the low level C code where TextBlock and Style are good candidates. The expected behaviour is a proper word wrap and the manual says it should word wrap. Is this not maintenance? Shoes 4 most likely have to fix this issue too."
para p1+"\n\n", :wrap => "word"
para p2+"\n\n", :wrap => "char"
para p3+"\n\n", :wrap => "word"
para p4 , :wrap => "char"
info p3
info p4
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment