Created
July 21, 2011 12:22
-
-
Save jlecour/1097079 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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