Book a Demo

Author Topic: GetFormatFromField("RTF",text) add new p  (Read 3046 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
GetFormatFromField("RTF",text) add new p
« on: August 11, 2009, 09:25:12 pm »
The Repository.GetFormatFromField() with the parameter RTF is not working correctly.
I have two different strings to convert:
Code: [Select]
Repository.GetFormatFromField("\r\nStringWithNewLine\r\n");results in:
Code: [Select]
"{\\rtf1... (more RTF Codes)... \\saauto1 StringWithNewLine\\par}and
Code: [Select]
Repository.GetFormatFromField("\r\nStringWithoutNewLine");results in
Code: [Select]
"{\\rtf1... (more RTF Codes)... \\saauto1 StringWithoutNewLine\\par}It is this last "\\par" wich is wrongfully added in the GetFormatFromField function.
I will now have to find out first if my string has a newline and the end and if not remove the last "\\par" from the RTF string, pff... just the kind of thing I like   :-/

I'll report this as a bug.

Geert
« Last Edit: August 11, 2009, 09:26:53 pm by Geert.Bellekens »