Differences between current version and previous revision of EclipseNotes.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 3 | Last edited on Sunday, July 11, 2004 2:40:55 am | by AristotlePagaltzis | |
Older page: | version 2 | Last edited on Thursday, July 8, 2004 11:24:46 am | by DrewBroadley | Revert |
@@ -1,17 +1,12 @@
-Notes regarding [Eclipse] and it's quirks and features
-----
+!!! Tabs vs Spaces
-[Eclipse] has issues with my version 2.1.3, where it ''sometimes'' substitutes \t(abs) for four spaces
(or equivilant
of).
-
This makes CVS and other editors handle the tabs differently depending being fixed-width or not and so the spaces show up unequal.
+[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:
-Here is a quick parser to fix the problem:
-
-
#!/bin/sh
-
-
FILE=$1
-
TMPFILE=${FILE}.tmp
-
cp ${FILE} ${TMPFILE}
-
perl -ple 's/\s{4}/\t/gi' ${TMPFILE} > ${FILE}
-
rm ${TMPFILE}
-
-- [DrewBroadley]
+<verbatim>
+#!/bin/sh
+FILE=$1
+TMPFILE=${FILE}.tmp
+cp ${FILE} ${TMPFILE}
+perl -ple 's/\s{4}/\t/gi' ${TMPFILE} > ${FILE}
+rm ${TMPFILE}
+</verbatim>