Skip to content

Instantly share code, notes, and snippets.

@andrewtimberlake
Created January 14, 2009 19:31
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 andrewtimberlake/47014 to your computer and use it in GitHub Desktop.
Save andrewtimberlake/47014 to your computer and use it in GitHub Desktop.
start_y = y
bounding_box [0, cursor], :width => margin_box.width / 2 do
text "Text for the left column"
end
left_end_y = y
y = start_y
bounding_box [margin_box.width / 2, cursor], :width => margin_box.width / 2 do
text "Text for the right column\nthat is more than one line\nso that the right column is larger"
end
right_end_y = y
y = [left_end_y, right_end_y].min
text "Some text that will be below both columns"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment