]> git.plutz.net Git - busy/commitdiff
fix extra whitespace bug
authorpaul <paul@plutz.net>
Mon, 15 Jun 2015 00:44:32 +0000 (00:44 +0000)
committerpaul <paul@plutz.net>
Mon, 15 Jun 2015 00:44:32 +0000 (00:44 +0000)
svn path=/trunk/; revision=67

pages/Subversion.sh

index 5692d5671ad6b48fdfe350fd6345978f703e355a..c771ee07a9c23c4863c44e8cf1728036d7572db0 100755 (executable)
@@ -59,8 +59,9 @@ svn_showurl(){
        lang=txt \
     || lang=$(
          source-highlight --lang-list \
-         |  grep -o "^${url##*.} " || echo sh
+         | grep -o "^${url##*.} " || echo sh
        )
+    lang="${lang% }"
     svn cat -r "$rev" "${baseuri}/${url}" \
     | source-highlight -s "$lang"
   fi