Article View: adobe.scripting.indesign
Article #15457[VB]InDesign adds extra hardreturn to text
From: Eelko_Heuvelmans
Date: Wed, 03 Dec 2003 14:36
Date: Wed, 03 Dec 2003 14:36
30 lines
1621 bytes
1621 bytes
Hi all, As i was doing some scripting i ran into the following problem. When i insert text into a textframe using: please note that myInsetrionPoint is a valid insertpoint in a valid textframe and myString contains text myInsertionPoint.TextContents = myString This works well when myString contains one line of text like: "hello all, one simple line" BUT! When myString contains a multiline string like: "Hello all, second line" InDesign inserts an extra linebreak in the textframe. So the output is like this: "Hello all, second line ----------- So an extra linebreak is inserted by InDesign. Do any of you know how this may appear? It's so stupid this! I can't figgure out what it is... When stepping trough my code myString does contain the text like i want it to be placed. I Don't see any extra linebreaks or something like that.. Who has any clue? Thanx very much!
Technical Details
Message-ID:
<2cceb577.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,d4531f005c9290ec,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-12-03 06:37:44 PST From: Eelko_Heuvelmans@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: [VB]InDesign adds extra hardreturn to text Message-ID: <2cceb577.-1@webx.la2eafNXanI> Date: Wed, 3 Dec 2003 06:36:50 -0800 Lines: 35 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit