additional space after RTF field
Posted: Fri Mar 26, 2010 2:33 pm
Hi,
I have a problem exporting rtf from TRichView 12.1/ScaleRichView 3.1.
My text contains rtf reference fields to numbered lists. In the resulting rtf, there is always a space character after the field.
Example:
I have a document with one paragraph with text "Usch 1", which is a numbered list, soe.g. "1.1.1 Usch 1"
In the next paragraph a have a reference field to this numbered paragraph.
GetAllText is:
"Usch 1\r\n see also {\\field{\\*\\fldinst REF Usch1 \\\\r \\\\h \\\\*MERGEFORMAT \\fldalt } {\\fldrslt Usch1 }}!"
Then a call MyScaleRichView->RichViewEdit->SaveRTF
Resulting rtf is:
1.1.1. Usch 1
see also 1.1.1 !
There is a space between 1.1.1 and the exclamation mark.
What I need is:
1.1.1. Usch 1
see also 1.1.1!
(no space between 1.1.1 and !)
Can you help me with that?
Thanks!
Usch
I have a problem exporting rtf from TRichView 12.1/ScaleRichView 3.1.
My text contains rtf reference fields to numbered lists. In the resulting rtf, there is always a space character after the field.
Example:
I have a document with one paragraph with text "Usch 1", which is a numbered list, soe.g. "1.1.1 Usch 1"
In the next paragraph a have a reference field to this numbered paragraph.
GetAllText is:
"Usch 1\r\n see also {\\field{\\*\\fldinst REF Usch1 \\\\r \\\\h \\\\*MERGEFORMAT \\fldalt } {\\fldrslt Usch1 }}!"
Then a call MyScaleRichView->RichViewEdit->SaveRTF
Resulting rtf is:
1.1.1. Usch 1
see also 1.1.1 !
There is a space between 1.1.1 and the exclamation mark.
What I need is:
1.1.1. Usch 1
see also 1.1.1!
(no space between 1.1.1 and !)
Can you help me with that?
Thanks!
Usch