How to make output in 1 row for xml.builder?

42 Views Asked by At

I want have output in 1 row text:

<A><d>n</d>Im newspaper text</A>

I used

xml.A { |t| t.d "n"; t.text! advert.newspaper_text }

In this case i have output:

<A>
  <d>n</d>
  Im newspaper text
</A>

How i can do it?

0

There are 0 best solutions below