File susedoc-prefer-xmlformat-t.diff of Package susedoc
--- susedoc/bin/suse-xmlformat.orig 2010-01-14 13:21:11.000000000 +0100
+++ susedoc/bin/suse-xmlformat 2010-03-19 01:24:57.000000000 +0100
@@ -26,5 +26,14 @@ if [ "$res" = '' ]; then
exit 200
fi
-xmlformat.pl --config-file "$CONFIG_FILE" $@
+xmlformat=$res
+## check, if xmlformat supports tag-formatting
+if $xmlformat -t < /dev/null >/dev/null 2>&1; then
+ xmlformat="$xmlformat -t"
+else
+ echo "$xmlformat: tag-formatting not supported."
+ echo "Please install version 1.04.01 or later."
+fi
+
+$xmlformat --config-file "$CONFIG_FILE" $@
exit $?