![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Removing RTF Control Tags from Text Topic Summary: Created On: 19-Dec-2005 23:29 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi,
When I place the contents of lets say the "Object Text" attribute into a buffer, all of the hidden RTF Control tags go into the buffer as well. Is there any method that will clean out all of the RTF Control Tags and just put the raw text into the buffer? ------------------------- Paul Miller Specification Practices Specialist, EuroCyber, Melbourne, Australia. Mobile: +61 (0)418 135 103 Web Site: http://www.eurocyber.biz E-mail: miller@eurocyber.biz">pmiller@eurocyber.biz |
|
![]() |
|
![]() |
|
How are you putting the attribute value into the buffer?
The following works fine: Object o = current Buffer buf = create // add text inlcuding RTF markup to buffer buf += richText o."Object Text" // add plain text to buffer buf += o."Object Text" "" print stringOf(buf) delete(buf) ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
You can strip all the rich text from a string by writing a function
[] Goes through all the RichTextParagraphs in the string. [] get the text via rtp.text [] insert an EOL before the 2nd and additional chunks. Going through the RichText chunks of the string doesn't work since there's a bug where the rt.eol command (or whatever its called) incorroectly returns true causing such a function to insert extra EOLs where there is none. - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Removing RTF Control Tags from Text
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.