svn commit: r16855 - trunk/src/argouml-app/src/org/argouml/persistence/UmlFilePersister.java
Thomas Neustupny <[email protected]>
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: thn
Date: 2009-03-04 07:06:32-0800
New Revision: 16855
Modified:
trunk/src/argouml-app/src/org/argouml/persistence/UmlFilePersister.java
Log:
Fix for issue 5710: string ^@^@^@[...] in .uml file
Modified: trunk/src/argouml-app/src/org/argouml/persistence/UmlFilePersister.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/persistence/UmlFilePersister.java?view=diff&pathrev=16855&r1=16854&r2=16855
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/persistence/UmlFilePersister.java (original)
+++ trunk/src/argouml-app/src/org/argouml/persistence/UmlFilePersister.java 2009-03-04 07:06:32-0800
@@ -774,7 +774,7 @@
Matcher matcher = xmlDeclarationPattern.matcher(outCB);
// Remove anything that matches our pattern
- String headerRemainder = matcher.replaceAll("");
+ String headerRemainder = matcher.replaceAll("").trim() + '\n';
// Reencode the remaining characters as bytes again
ByteBuffer bb = decoder.charset().encode(headerRemainder);
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=1267175
To unsubscribe from this discussion, e-mail: [[email protected]].