This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 51186 - XMI writter does not preserve formatting
Summary: XMI writter does not preserve formatting
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
: 51258 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-05 09:24 UTC by Martin Matula
Modified: 2004-11-09 09:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Matula 2004-11-05 09:24:03 UTC
I have noticed a strange behaviour with MDR and
String attributes. MDR
automaticcaly cuts long line and insert \n as well
extra spaces at the
beginning of the lines except for the first one.
The extra spaces seems to
be additional padding.

This is rather disturbing because I store Base 64
encoded strings into
attributes and, as a consequence, I must strip all
these unwanted \n and
spaces.
Comment 1 Martin Matula 2004-11-05 09:28:31 UTC
Dane, please look at it.
Comment 2 Martin Matula 2004-11-08 11:01:39 UTC
*** Issue 51258 has been marked as a duplicate of this issue. ***
Comment 3 Daniel Prusa 2004-11-08 15:52:21 UTC
I cannot reproduce the problem. I have tried it in Netbeans 3.6 as
well as with the latest version of mdr. 

As for the cutting of long lines, XMI writer does not cut the pair
attribute_name = 'attribute_value' 

\n characters should be inserted only between such pairs when the
length of a line exceeds 70 chracters.

In what way do you use XMI writer? Is there something special on it or
do you use just the default instance of XMI writer provided by the mdr
module? 
What is the lenght of lines that are cut? Is it approximately 70
characters or is it more?

If you have an xmi file on which the proble is reproducible, can you
attach it, please ?
Comment 4 Daniel Prusa 2004-11-09 09:04:45 UTC
Closing as worksforme.