🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1548

text replace and SpecialCharacters

#1548
From: Siegfried_Kauschat
Date: Fri, 30 Jan 2009 09:23
12 lines
1218 bytes
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: 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.
Technical Details
Message-ID: <59b7bb64.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,e76ee089cd705fa3,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Siegfried_Kauschat@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: text replace and SpecialCharacters
Message-ID: <59b7bb64.-1@webcrossing.la2eafNXanI>
Date: Fri, 30 Jan 2009 01:23:06 -0800
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit