I'm using a template system based on RTF + Velocity. In my RTF's I've got several VTL 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.

Does someone know why might Word be doing this, or how to avoid it?

  • 1
    A screenshot showing the Ruler and with show for Show/Hide under Home>Paragraph (with Office>Word Options>Display>Always show these formatting marks on the screen set to Show all formatting marks checked) at the break, and advice whether any of Advanced>Compatibility Options for>Layout Options are checked may help rule out some possibilities. – pnuts Jan 25 '13 at 16:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.