I'm using a template system based on RTF + Velocity. In my RTF's I've got several [VTL](http://velocity.apache.org/engine/devel/vtl-reference-guide.html) sentences, such as:
#foreach($item in $somevar.someProp)Some may-be RTF text #end
If I open the RTF file with Word (2007) and apply any lesser change somewhere else in the document, I sometimes get VTL sentences broken :
#foreach($item in $somevar.som
eProp)Some may-be RTF text #end
This causes the template engine to choke on the sentence, and having to open the RTF with a text editor to restore the split line every time is quite annoying. Note this does not always happen, it seems to be specific on some files. It also doesn't have
anything to do with line length, there are other lines longer than the one that gets split.
Why might Word be doing this, or how could I avoid it?
EDIT:
Here's an example file. I can't use SkyDrive at work, so it's in GoogleDrive. Seems like the site won't let me post links, so here's the URL:
https://docs.google.com/file/d/0B_Pxpy6d6hsORktYOWprMDZ0eDA/edit?usp=sharing
It seems to always break at lines 1736 and 1842. It can be reproduced if opened with MS Word 2007 (12.0.6545.5000) and any minor change is done (for instance, a blank space at the end of the document).