Skip to content

Commit

Permalink
Display a tool tip if there were errors, instead of replacing documen…
Browse files Browse the repository at this point in the history
…t with the error message

git-svn-id: http://svn.textmate.org/trunk/Bundles/XML.tmbundle@6937 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
ciaran committed Apr 2, 2007
1 parent 3349db9 commit 55b5f2b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Commands/Tidy XML.plist
Expand Up @@ -5,13 +5,13 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>if [[ $TM_SOFT_TABS == "YES" ]];
then export XMLLINT_INDENT=$(printf "%${TM_TAB_SIZE}s")
else export XMLLINT_INDENT=" " # one tab
fi
xmllint --format -
</string>
<string>result=`xmllint --format - 2&gt;&amp;1`
if [[ $? &gt; 0 ]];
then
exit_show_tool_tip "Errors: $result"
else
echo "$result"
fi</string>
<key>input</key>
<string>selection</string>
<key>keyEquivalent</key>
Expand Down

0 comments on commit 55b5f2b

Please sign in to comment.