[dia] vdx: fix <Text>, <cp/>, <pp/> and <tp/> tags
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] vdx: fix <Text>, <cp/>, <pp/> and <tp/> tags
- Date: Sun, 26 Jun 2011 10:48:46 +0000 (UTC)
commit f81187a2855778e9882153610c4b08cd7badf08c
Author: Hans Breuer <hans breuer org>
Date: Sat Jun 25 12:35:13 2011 +0200
vdx: fix <Text>, <cp/>, <pp/> and <tp/> tags
The former has no parameters, while the latter have
no children.
plug-ins/vdx/vdx-xml.c | 20 ++++----------------
1 files changed, 4 insertions(+), 16 deletions(-)
---
diff --git a/plug-ins/vdx/vdx-xml.c b/plug-ins/vdx/vdx-xml.c
index c74d89e..1c87a2c 100644
--- a/plug-ins/vdx/vdx-xml.c
+++ b/plug-ins/vdx/vdx-xml.c
@@ -4885,7 +4885,7 @@ vdx_write_object(FILE *file, unsigned int depth, const void *p)
case vdx_types_Text:
Text = (const struct vdx_Text *)(p);
- fprintf(file, "%s<Text IX='%u'>", pad, Text->IX);
+ fprintf(file, "%s<Text>", pad);
*pad = 0;
break;
@@ -5074,13 +5074,9 @@ vdx_write_object(FILE *file, unsigned int depth, const void *p)
case vdx_types_cp:
cp = (const struct vdx_cp *)(p);
- fprintf(file, "%s<cp IX='%u'", pad, cp->IX);
+ fprintf(file, "<cp IX='%u'/>", cp->IX);
if (!child)
- {
- fprintf(file, "/>\n");
return;
- }
- fprintf(file, ">\n");
break;
case vdx_types_fld:
@@ -5096,24 +5092,16 @@ vdx_write_object(FILE *file, unsigned int depth, const void *p)
case vdx_types_pp:
pp = (const struct vdx_pp *)(p);
- fprintf(file, "%s<pp IX='%u'", pad, pp->IX);
+ fprintf(file, "<pp IX='%u'/>", pp->IX);
if (!child)
- {
- fprintf(file, "/>\n");
return;
- }
- fprintf(file, ">\n");
break;
case vdx_types_tp:
tp = (const struct vdx_tp *)(p);
- fprintf(file, "%s<tp IX='%u'", pad, tp->IX);
+ fprintf(file, "<tp IX='%u'/>", tp->IX);
if (!child)
- {
- fprintf(file, "/>\n");
return;
- }
- fprintf(file, ">\n");
break;
case vdx_types_text:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]