Skip to content

Commit

Permalink
- Update .indent helper script to use 4 spaces as indention
Browse files Browse the repository at this point in the history
  • Loading branch information
schaefi committed Aug 1, 2014
1 parent d001011 commit e5ece84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .indent
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#!/bin/bash
for file in $(find -type f | grep -v Makefile | grep -v .git | grep -v refresults | grep -v kiwiTestRepo ); do
mode=$(stat -c %a $file)
expand -t 2 $file > $file.tmp && mv $file.tmp $file
expand -t 4 $file > $file.tmp && mv $file.tmp $file
chmod $mode $file
done
rm modules/KIWISchema.rng
make modules/KIWISchema.rng

sed -i -e 's@\	@\ \ \ \ @' xsl/pretty.xsl
sed -i -e 's@\	@\ \ \ \ @' xsl/print.xsl
2 changes: 1 addition & 1 deletion xsl/pretty.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
encoding="utf-8"/>
<xsl:strip-space elements="*"/>

<xsl:param name="indent-increment" select="'&#32;&#32;'"/>
<xsl:param name="indent-increment" select="'&#32;&#32;&#32;&#32;'"/>

<xsl:template name="newline">
<xsl:text>&#10;</xsl:text>
Expand Down
2 changes: 1 addition & 1 deletion xsl/print.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<xsl:apply-templates mode="pretty"/>
</xsl:template>

<xsl:param name="indent-increment" select="'&#32;&#32;'"/>
<xsl:param name="indent-increment" select="'&#32;&#32;&#32;&#32;'"/>

<xsl:template name="newline">
<xsl:text>&#10;</xsl:text>
Expand Down

0 comments on commit e5ece84

Please sign in to comment.