Domino 9 und frühere Versionen > ND6: Entwicklung

Unerwünschte Zeilenumbrüche in WEB RTItem

<< < (2/2)

m3:
B0rken as designed, siehe Technote #1089825:


--- Zitat ---Problem
Text typed into a rich text field (RTF) of a Lotus Notes® document contains unexpected characters for a carriage return and line feed. The Carriage Return (CR) and Line Feed (LF) are not displayed within Notes®. An application which can display hidden characters reveals their presence.

To re-create this issue:

1. Type (into a Rich Text field) an unbroken line of text 81 characters long.
2. Save the document.
3. Replace one of the characters with a space.
4. Save the document.
5. Cut and paste the text from the Rich Text field into an editor which can display hidden characters.
6. The special characters for a Carriage Return and Line Feed will be found where the space was added.
 
Solution
Notes will place the CR and LF at a word break (space) as close to character 80 as possible, but always before character 80. The CR LF added does not actually have any effect unless the font used widens the text such that the text would need to wrap.

This issue was reported to Quality Engineering; however, it was determined that Notes is working as designed and there are currently no plProblem
Text typed into a rich text field (RTF) of a Lotus Notes® document contains unexpected characters for a carriage return and line feed. The Carriage Return (CR) and Line Feed (LF) are not displayed within Notes®. An application which can display hidden characters reveals their presence.

To re-create this issue:

1. Type (into a Rich Text field) an unbroken line of text 81 characters long.
2. Save the document.
3. Replace one of the characters with a space.
4. Save the document.
5. Cut and paste the text from the Rich Text field into an editor which can display hidden characters.
6. The special characters for a Carriage Return and Line Feed will be found where the space was added.
 
Solution
Notes will place the CR and LF at a word break (space) as close to character 80 as possible, but always before character 80. The CR LF added does not actually have any effect unless the font used widens the text such that the text would need to wrap.

This issue was reported to Quality Engineering; however, it was determined that Notes is working as designed and there are currently no plans to change the behavior.

Workaround
A LotusScript agent can be used to access the plain text within a Rich Text field.
Note: Attempting to display this unformatted text will introduce the carriage returns again. In Notes 5.x and 6.x the NotesItem classes Text property can return up to two gigabytes of text from a Rich Text field. In Notes 6.0, an additional method GetUnformattedText was added to the NotesRichTextItem class. This method's limits are similar to those of the Text property.ans to change the behavior.

Workaround
A LotusScript agent can be used to access the plain text within a Rich Text field.
Note: Attempting to display this unformatted text will introduce the carriage returns again. In Notes 5.x and 6.x the NotesItem classes Text property can return up to two gigabytes of text from a Rich Text field. In Notes 6.0, an additional method GetUnformattedText was added to the NotesRichTextItem class. This method's limits are similar to those of the Text property.
--- Ende Zitat ---

Gandhi:
Also diese Antworten von Lotus finde ich einfach immer nur frech...von wegen, da existiert kein Problem.
Und wenn das as designed worked - dann ist das Design halt scheisse.
Diese 80 Zeichen Beschränkung stammt aus den frühen 80ern - das hätte man längst mal rausnehmen können.

Wirklich gelöst habe ich das damals nicht (frag mal Dau-In - die arbeitet noch mit dem Problem:-))

m3:
Das ist die geheiligte Abwärtskompatibilität.

Ist ja prinzipiell OK, aber dann muss ich ein RTF_Modern oder so für moderne Anwendungen einführen, das sich etwas "klüger" verhält.
Aber zum Thema RTF fallen dem Ben noch ganz andere Sachen ein, die verbessert werden sollten.

DAU-in:

--- Zitat von: Gandhi am 30.11.07 - 16:11:00 ---Wirklich gelöst habe ich das damals nicht (frag mal Dau-In - die arbeitet noch mit dem Problem:-))


--- Ende Zitat ---

Ehrlich gesagt, nachdem immer wieder  zwei Drittel der Dokumente aus der DB verschwunden waren und nachdem sich gezeigt hatte, dass durch einen raschen Doppleklick auf den Cancel-Button die Applikation, der Dominoserver und der Windowsserver beendet wurden, hat es betr. des immer noch vorhandenen Zeilenumbruchs keinerlei Beschwerden gegeben.

Navigation

[0] Themen-Index

[*] Vorherige Sete

Zur normalen Ansicht wechseln