mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
libmicroxml: avoid new lines in attributes patch
This commit is contained in:
parent
201d3e9b69
commit
ca2d6ac266
1 changed files with 26 additions and 0 deletions
26
libmicroxml/patches/0002-avoid-new-lines-in-attributes.patch
Normal file
26
libmicroxml/patches/0002-avoid-new-lines-in-attributes.patch
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
--- a/mxml-file.c
|
||||
+++ b/mxml-file.c
|
||||
@@ -2782,7 +2782,7 @@ mxml_write_node(mxml_node_t *node, /* I - Node to write */
|
||||
|
||||
if (attr->value)
|
||||
width += strlen(attr->value) + 3;
|
||||
-
|
||||
+#if 0
|
||||
if (global->wrap > 0 && (col + width) > global->wrap)
|
||||
{
|
||||
if ((*putc_cb)('\n', p) < 0)
|
||||
@@ -2792,11 +2792,14 @@ mxml_write_node(mxml_node_t *node, /* I - Node to write */
|
||||
}
|
||||
else
|
||||
{
|
||||
+#endif
|
||||
if ((*putc_cb)(' ', p) < 0)
|
||||
return (-1);
|
||||
|
||||
col ++;
|
||||
+#if 0
|
||||
}
|
||||
+#endif
|
||||
|
||||
if (mxml_write_name(attr->name, p, putc_cb) < 0)
|
||||
return (-1);
|
||||
Loading…
Add table
Reference in a new issue