mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Reverse merged 5.1.N (5.1.1)
119707 rmunteanu: Merged HEAD (5.1) to 5.1.N (5.1.1) 119689 mward: ACE-4765: fixed "schema comparison tool" XML parsing bug. Element text content was being trimmed, in sax parser's characters(...) method - but this method may be called multiple times with chunked data (due to buffering) and trim should not be applied until after the entire text has been parsed for that element. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.1.N/root@119752 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -286,7 +286,7 @@ public class XMLToSchema extends DefaultHandler
|
||||
@Override
|
||||
public void characters(char[] ch, int start, int length) throws SAXException
|
||||
{
|
||||
String text = new String(ch, start, length);
|
||||
String text = new String(ch, start, length).trim();
|
||||
if (text.length() > 0)
|
||||
{
|
||||
lastText.append(text);
|
||||
|
Reference in New Issue
Block a user