Hello,
While using xmlindent, i wrote a little patch about the following issue :
~# cat test.xml
<a><b>c</b></a>
~# xmlindent -f test.xml
<a>
<b>c
</b>
</a>
I think that it must be :
<a>
<b>c</b>
</a>
So the patch ;
--- xmlindent-0.2.17.orig/indent.c
+++ xmlindent-0.2.17/indent.c
@@ -86,8 +86,8 @@
opts->wrap_long_lines = false;
opts->force_newline_after_start_tag = true;
opts->force_newline_after_end_tag = true;
- opts->force_newline_before_start_tag = true;
- opts->force_newline_before_end_tag = true;
+ opts->force_newline_before_start_tag = false;
+ opts->force_newline_before_end_tag = false;
opts->force_always = false;
}
Logged In: YES
user_id=1679342
Originator: NO
Please add the patch to the tar.gz release