Apache OpenOffice (AOO) Bugzilla – Issue 27505
Writer saves RTF-Format "\ControlWordDigit Text" as "\ControlWordDigitText" without Space
Last modified: 2013-08-07 14:41:36 UTC
Sometimes writer saves RTF-Format "\ControlWordDigit Text" as "\ControlWordDigitText" without Space = Delimiter. We have a sample RTFIssue.swx. Saving RTFIssue.swx as RTFIssue.rtf and loading again removes the "8" which is right after a format change in the text. This might be because of coding "\ControlWordDigit8Test" rather than "\ControlWordDigit 8Test" with Space as Delimiter. The starting control word of this problem/format in the rtf file (RTFIssue.rtf) is "\loch". You can contact us for the example: fd@sourcery.de RTF-Specification says: "A control word is a specially formatted command that RTF uses to mark printer control codes and information that applications use to manage documents. A control word cannot be longer than 32 characters. A control word takes the following form: \LetterSequence<Delimiter> Note that a backslash begins each control word. The LetterSequence is made up of lowercase alphabetic characters between "a" and "z" inclusive. RTF is case sensitive, and all RTF control words must be lowercase. The delimiter marks the end of an RTF control word, and can be one of the following: • A space. In this case, the space is part of the control word. • A digit or a hyphen (-), which indicates that a numeric parameter follows. The subsequent digital sequence is then delimited by a space or any character other than a letter or a digit. The parameter can be a positive or a negative number. The range of the values for the number is generally -32767 through 32767. However, Word tends to restrict the range to -31680 through 31680. Word allows values in the range -2,147,483,648 to 2,147,483,648 for a small number of keywords (specifically \bin, \revdttm, and some picture properties). An RTF parser must handle an arbitrary string of digits as a legal value for a keyword. If a numeric parameter immediately follows the control word, this parameter becomes part of the control word. The control word is then delimited by a space or a nonalphabetic or nonnumeric character in the same manner as any other control word. • Any character other than a letter or a digit. In this case, the delimiting character terminates the control word but is not actually part of the control word."
Created attachment 14355 [details] Sample file: Save as RTF, load again, digit '8' will be missing
reassigned to mru
Has already been fixed for OO 2.0. Can be seen in current developer snapshot build 680m34.
Closed.