Commit 9716acfc authored by Olivier Bertrand's avatar Olivier Bertrand

- Re-install blank trimming to have the xml test pass.

  Note that the problem if far more complex. To be revisited.

modified:
  storage/connect/libdoc.cpp
  storage/connect/tabxml.h
parent b63eb1d8
...@@ -469,12 +469,13 @@ char *XML2NODE::GetText(char *buf, int len) ...@@ -469,12 +469,13 @@ char *XML2NODE::GetText(char *buf, int len)
xmlFree(Content); xmlFree(Content);
if ((Content = xmlNodeGetContent(Nodep))) { if ((Content = xmlNodeGetContent(Nodep))) {
char *extra = " \t\r\n";
char *p1 = (char*)Content, *p2 = buf; char *p1 = (char*)Content, *p2 = buf;
bool b = false; bool b = false;
// Copy content eliminating extra characters // Copy content eliminating extra characters
for (; *p1 && (p2 - buf) < (len - 1); p1++) for (; *p1 && (p2 - buf) < len; p1++)
if (strchr("\t\r\n", *p1)) { if (strchr(extra, *p1)) {
if (b) { if (b) {
// This to have one blank between sub-nodes // This to have one blank between sub-nodes
*p2++ = ' '; *p2++ = ' ';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment