Переглянути джерело

Merge pull request #32 from GWRon/fix_savingxmlcomments

[pub.mxml] Fix regression bug of saving xml comments
Brucey 6 роки тому
батько
коміт
9f720b24c3
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      mxml.mod/mxml/mxml-file.c

+ 2 - 1
mxml.mod/mxml/mxml-file.c

@@ -1529,7 +1529,7 @@ mxml_stream_write(_mxml_streambuf_t *buf)	/* I - File descriptor buffer */
   int		bytes;			/* Bytes written */
   unsigned char	*ptr;			/* Pointer into buffer */
 
-  
+
  /*
   * Range check...
   */
@@ -3272,6 +3272,7 @@ mxml_write_node(mxml_node_t     *node,	/* I - Node to write */
     switch (current->type)
     {
       case MXML_ELEMENT :
+      case MXML_COMMENT :
 	  col = mxml_write_ws(current, p, cb, MXML_WS_BEFORE_OPEN, col, putc_cb, cb_ctx);
 
 	  if ((*putc_cb)('<', p) < 0)