This originally appeared on the Annexe.

Wrapping at column 130, and handle as XML:

tidy -wrap 130 -quiet -modify -asxml --tidy-mark no $file