I'm using IntelliJ IDEA 12.  I've used the context menu to import some pom.xml maven dependencies.  However, when I view the POM file, the dependencies are not formatted nicely--they are in a single line.   When I reformat the pom file (Ctrl-Alt-L) the formatting is still not fixed.

I tried looking at Project Settings > code style > XML, but I couldn't see an obvious setting that would fix this.  I fiddled with "keep line breaks" and "wrap text" settings, but to no avail.

I have noticed that other XML files have the same issue--if I join them, formatting won't break them apart.

How can I get IntelliJ to intelligently break xml across multiple lines, with proper indentation? 


Question: With the hook entry_submission_end, is it possible to know if the entry is inserted or updated?
Answer: You can compare $meta['edit_date'] with $meta['entry_date'].

You will need to bring both dates to same format of course, as entry_date contains current timestamp, while edit_date is formatted as '%Y%m%d%H%i%s'