Issue 20835 - erroneous rtf files generated - missing space character
Summary: erroneous rtf files generated - missing space character
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1
Hardware: PC Windows XP
: P4 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords: ms_interoperability
Depends on:
Blocks:
 
Reported: 2003-10-07 14:51 UTC by mikeascott
Modified: 2013-08-07 14:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
file send by email by reporter (1.30 KB, application/octet-stream)
2003-10-08 07:35 UTC, utomo99
no flags Details
example oo .sxw - save as type .rtf to generate incorrect output (4.97 KB, application/octet-stream)
2003-10-08 08:12 UTC, mikeascott
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description mikeascott 2003-10-07 14:56:10 UTC
If I create a file with the text

Bold italic plain bold italic plain
bold plain bold plain
italic plain italic plain
 bold plain (leading space)

where each word has the appropriate attribute (bold/ital/none) set, and
write to an rtf file, then the first three lines have no 
space appearing after the first word.  The third line is formatted correctly.

The relevant fragment of rtf generated is (sorry about the long lines and
messy wrap)

\pard\plain 
\ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\ql\rtlch
\af3\afs24\lang255\ltrch\dbch\af2\afs24\langfe255\loch\f0\
fs24\lang2057{\loch\f0\fs24\lang2057\i0\b{\b Bold}}{\loch\f0\fs24\lang2057
{\i italic} plain {\b bold} {\i italic} plain}
\par {\loch\f0\fs24\lang2057\i0\b{\b bold}}{\loch\f0\fs24\lang2057 plain
{\b bold} plain}
\par {\loch\f0\fs24\lang2057\i\b0{\i italic}}{\loch\f0\fs24\lang2057 plain
{\i italic} plain}
\par {\loch\f0\fs24\lang2057\i0\b0  {\b bold} plain (leading space)}
\par 

which shows that the required space is missing after the first word of the
first three lines: a space following an rtf command is 
part of the command, and not for output.
Comment 1 utomo99 2003-10-08 03:46:10 UTC
Please Attach the documents which make this problem, so we can test
it/faster to confirm.  
(Without the documents, we cannot confirm the problem easily/need more
time)
Don't forget to cut other part of the documents, so the file size is
small, but we still able to see the problem. 
Comment 2 utomo99 2003-10-08 07:35:33 UTC
Created attachment 10099 [details]
file send by email by reporter
Comment 3 utomo99 2003-10-08 07:37:07 UTC
It is not bold but it look like bold. 

To reproduce:
open the file in OOo
save as rtf. plain text will look as bold (but not bold) when opened


I can Reproduce the problem on 
OpenOffice 1.1 (default Install, US), Win XP Pro Sp1. 
(And MS Office XP Sp2). 
It is real problem
Comment 4 mikeascott 2003-10-08 08:12:38 UTC
Created attachment 10102 [details]
example oo .sxw - save as type .rtf to generate incorrect output
Comment 5 h.ilter 2003-10-08 16:04:58 UTC
Reassigned to MRU
Comment 6 michael.ruess 2003-10-09 14:22:30 UTC
MRU->CMC: Some space characters get lost on export to RTF.
Comment 7 caolanm 2003-10-10 10:42:58 UTC
Yes, same as task #112364# in old bugtracker and fixed for 2.0 in
kilkennyfilterteam14
Comment 8 caolanm 2003-10-17 16:26:19 UTC
reopen to reassign
Comment 9 caolanm 2003-10-17 16:26:41 UTC
cmc->mru: should be ok in kilkennyfilterteam14
Comment 10 michael.ruess 2003-10-20 11:30:15 UTC
Checked fix with CWS kilkennyfilterteam14.
Comment 11 michael.ruess 2003-10-20 11:30:37 UTC
Verified. Fix will be included in OO 2.0.
Comment 12 mci 2004-01-08 13:43:52 UTC
checked with src680m19 == > ok