[liblouis-liblouisxml] [liblouisutdml] push by mwhapples - Disable LibXML2 whitespace stripping on 2014-05-20 15:56 GMT

  • From: liblouisutdml@xxxxxxxxxxxxxx
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Tue, 20 May 2014 15:56:39 +0000

Revision: 1dced554621d
Branch:   default
Author:   Michael Whapples
Date:     Tue May 20 16:06:47 2014 UTC
Log:      Disable LibXML2 whitespace stripping
http://code.google.com/p/liblouisutdml/source/detail?r=1dced554621d

Modified:
 /liblouisutdml/liblouisutdml.c
 /liblouisutdml/transcriber.c

=======================================
--- /liblouisutdml/liblouisutdml.c      Tue Apr 29 16:08:58 2014 UTC
+++ /liblouisutdml/liblouisutdml.c      Tue May 20 16:06:47 2014 UTC
@@ -97,10 +97,10 @@
   if (!libxml2_initialized)
     {
       libxml2_initialized = 1;
-      LIBXML_TEST_VERSION xmlKeepBlanksDefault (0);
+//      LIBXML_TEST_VERSION xmlKeepBlanksDefault (0);
       xmlSubstituteEntitiesDefault (1);
       xmlThrDefIndentTreeOutput (1);
-      xmlThrDefKeepBlanksDefaultValue (0);
+//      xmlThrDefKeepBlanksDefaultValue (0);
       xmlThrDefLineNumbersDefaultValue (1);
     }
   ud->doc = NULL;
=======================================
--- /liblouisutdml/transcriber.c        Tue May 20 09:26:44 2014 UTC
+++ /liblouisutdml/transcriber.c        Tue May 20 16:06:47 2014 UTC
@@ -1082,6 +1082,7 @@
   int length = strlen ((char *) node->content);
   int k;
   int stripSpace = 0;
+  lou_log(LOG_INFO, "Begin insert_text: node->content=%s", node->content);
   for (k = length; k > 0 && node->content[k - 1] <= 32; k--)
     // We want to track if the node only contains space 0x20 characters
     if (node->content[k - 1] != 32)
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts:

  • » [liblouis-liblouisxml] [liblouisutdml] push by mwhapples - Disable LibXML2 whitespace stripping on 2014-05-20 15:56 GMT - liblouisutdml