Raw data in xml

D

Don French

I have a array of lines that are actually a final document that I need
to put into one XML file/buffer as one element including all newlines
and formfeed characters. Actually all control characters.

The snippet of XmlBuilder is:

x.report @lines[@first_line_index..-1].each { |line| "#{line}\n"}

originally tried:

x.report @lines[@first_line_index..-1].each { |line| "#{line}"}

When I look at the buffer created in both cases, there are no newlines
in the buffer.

How can I do that?

Don French
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top