• Newsletter: long urls get truncated

    By Philippe Creytens 2 decades ago

    Thomas

    The nightly newsletter has a problem with long urls. In a number of messages I noticed that "niLink" always gets truncated at 80 chars. The rest of niLink is then added as a new line with <CR> in between.



    E.g.

    Link: http://news.ft.com/servlet/ContentServer?pagename=FT.com/StoryFT/FullStory&c=Sor

    yFT&cid=107942034754



    String "http …. =Sor"is always exactly 80 chars with long urls and is presented in the Notes client as a http link (which doesn't work of course because the correct url also needs the part of the second line.



    I looked at the code; problem should be situated where AppendText("Link..") seems to truncate at 80 chars:



    If Not (itemLink Is Nothing) Then

    varLink = itemLink.Text<br/>
    Call rtiBody.AppendText(&quot;Link: &quot; + Cstr(varLink))  &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;<br/>
    Call rtiBody.AddNewline(2)<br/>
    

    Else <end snip>



    – PC

    • I still can't figure that one out...

      By Thomas W Duff 2 decades ago

      When I move the URL to the field in the actual document, it works fine there regardless of whether it wraps or not. But when I put the URL on the newsletter, it won't work and wraps regardless of how much space is left.



      I'll keep looking at this one…