Skip to content

Instantly share code, notes, and snippets.

@jlecour
Created July 21, 2011 12:22
Show Gist options
  • Save jlecour/1097079 to your computer and use it in GitHub Desktop.
Save jlecour/1097079 to your computer and use it in GitHub Desktop.
if [[ "$TM_SOFT_TABS" = "YES" ]];
then export XMLLINT_INDENT=`ruby -e"print(' ' * ${TM_TAB_SIZE})"`
else export XMLLINT_INDENT=$'\t'
fi
result=`xmllint --format - 2>&1`
if [[ $? > 0 ]];
then exit_show_tool_tip "Errors: $result"
else echo "$result"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment