I want to make a certain block of a text (not a whole document) "have a left padding". I could say:
text_box "some text", :at => [200, 100]
But that's not I'm looking for because it specifies x and y as the paddings, whereas I want to specify only x.
How do I do that?
You can do this:
indent(10, 15) do # left and right padding
  text "Some text"
end
I can't test it right now, but you can try something like this:
text_box "some text", :at => [200, cursor]
Where cursor is a method which returns the cursor y position.
I hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With