Question
text replace and SpecialCharacters
Hi, I'm using xml-rules to place xml-content into my document. My problem is to replace paragraph breaks in an element by forced line breaks. I tried:
> with (element) {
> app.findGrepPreferences = app.changeGrepPreferences = null;
> app.findGrepPreferences.findWhat = "\r";
> app.changeGrepPreferences.changeTo = SpecialCharacters.FORCED_LINE_BREAK;
> changeGrep(false);
> }
Error (CS3): changeTo expects a String or NothingEnum but SpecialCharacters.FORCED_LINE_BREAK seems to be a number. Does anyone know a workaround?
Btw: insertTextAsContent(SpecialCharacters.FORCED_LINE_BREAK, XMLElementPosition.beforeElement) works fine - but it's not what I want.
> with (element) {
> app.findGrepPreferences = app.changeGrepPreferences = null;
> app.findGrepPreferences.findWhat = "\r";
> app.changeGrepPreferences.changeTo = SpecialCharacters.FORCED_LINE_BREAK;
> changeGrep(false);
> }
Error (CS3): changeTo expects a String or NothingEnum but SpecialCharacters.FORCED_LINE_BREAK seems to be a number. Does anyone know a workaround?
Btw: insertTextAsContent(SpecialCharacters.FORCED_LINE_BREAK, XMLElementPosition.beforeElement) works fine - but it's not what I want.
