Annotated edit history of
EclipseNotes version 3, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
3 |
AristotlePagaltzis |
1 |
!!! Tabs vs Spaces |
1 |
DrewBroadley |
2 |
|
3 |
AristotlePagaltzis |
3 |
[Eclipse] has issues with my version 2.1.3, where it ''sometimes'' substitutes \t(abs) for (the equivalent of) four spaces. This makes CVS and other editors handle the tabs differently depending being fixed-width or not and so the spaces show up unequal. Here is a quick parser from DrewBroadley to fix the problem: |
1 |
DrewBroadley |
4 |
|
3 |
AristotlePagaltzis |
5 |
<verbatim> |
|
|
6 |
#!/bin/sh |
|
|
7 |
FILE=$1 |
|
|
8 |
TMPFILE=${FILE}.tmp |
|
|
9 |
cp ${FILE} ${TMPFILE} |
|
|
10 |
perl -ple 's/\s{4}/\t/gi' ${TMPFILE} > ${FILE} |
|
|
11 |
rm ${TMPFILE} |
|
|
12 |
</verbatim> |