text method without line feed?

13 views
Skip to first unread message

Nicolas Sánchez

unread,
Feb 27, 2019, 3:36:36 AM2/27/19
to Prawn
Like

Prawn::Document.generate(filename) do
   for i in 0..3
    write "#{i}" #text
end

expected output: 0123

real output using text method:
0
1
2
3

Alexander Mankuta

unread,
Feb 27, 2019, 3:39:05 AM2/27/19
to Prawn
I don't think there's suck a thing.

A workaround would be to first construct a string and then output it whole.
Reply all
Reply to author
Forward
0 new messages