1
The first XML Builder Example for Nokogiri looks like this:
builder = Nokogiri::XML::Builder.new do |xml|
xml.root {
xml.products {
xml.widget {
xml.id_ "10"
xml.name "Awesome widget"
}
}
}
end
puts builder.to_xml
Even though I have the Ruby Vim files installed, Vim's autoindent flattens the above example like this:
builder = Nokogiri::XML::Builder.new do |xml|
xml.root {
xml.products {
xml.widget {
xml.id_ "10"
xml.name "Awesome widget"
}
}
}
end
puts builder.to_xml
Does anybody know how to get Vim to autoindent this correctly?