Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Multi-line text
 Post subject: Multi-line text Post rating: 0   New post Posted: Thu 06 Aug, 2015, 23:49 
User avatar

User rating: 0
Joined: Fri 10 Oct, 2014, 00:35
Posts: 58
Location: New Zealand, Auckland
Hi

I have noticed that multi-line text has extra CR characters inserted whenever the text is edited. This does not cause any issue for platform operation, but caused problems for my strategy program that manages drawn objects.

I attach workspace files that were saved each time text was edited, even making no changes to the text. You can see the number of CR characters grow each time.

Cheers
Tony


Attachments:
Multi-line Text - Edit 2.xml [96.13 KiB]
Downloaded 164 times
Multi-line Text - Edit 1.xml [96.12 KiB]
Downloaded 204 times
Multi-line Text - Original.xml [96.11 KiB]
Downloaded 177 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Multi-line text Post rating: 0   New post Posted: Sat 08 Aug, 2015, 02:55 
User avatar

User rating: 0
Joined: Fri 10 Oct, 2014, 00:35
Posts: 58
Location: New Zealand, Auckland
Hi

Further to my post above, here is a screenshot of the relevant lines in the workspace files.

Image

Cheers
Tony


Attachments:
Multi-line_Text_in_Workspace_files.png [6.4 KiB]
Downloaded 355 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Multi-line text Post rating: 0   New post Posted: Wed 12 Aug, 2015, 08:07 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We were unable to reproduce this. Please describe steps that can replicate this problem. Which chart object did you use?


 
 Post subject: Re: Multi-line text Post rating: 0   New post Posted: Fri 14 Aug, 2015, 05:16 
User avatar

User rating: 0
Joined: Fri 10 Oct, 2014, 00:35
Posts: 58
Location: New Zealand, Auckland
Hi support

Steps to illustrate extra CR characters in the workspace file:
1. I suggest starting with a simple workspace, e.g. one chart with no drawings or indicators (just to keep the workspace file simple).
2. Add text to the chart and type two lines of text.
3. Save workspace.
4. Open the workspace file with a text editor to see the CR/LF character codes.

Image

5. Select text, right button menu "Edit label". Make no change to the text, just press OK.
6. Save workspace.
7. Open the workspace file with a text editor to see the extra CR/CR/LF character codes.

Image

Every time this process is repeated an extra CR code is inserted.

Again, this is not a problem for the platform operation, but it makes it difficult to programmatically handle the text drawn object.

Cheers
Tony


Attachments:
After_create_text.png [18.89 KiB]
Downloaded 357 times
After_1st_edit.png [18.82 KiB]
Downloaded 303 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com