Index: applications/editors/josm/plugins/openlayers/README
===================================================================
--- applications/editors/josm/plugins/openlayers/README	(revision 12778)
+++ applications/editors/josm/plugins/openlayers/README	(revision 12780)
@@ -3,10 +3,10 @@
 This plugin is a proof of concept, and so it is at a very first stage.
 
-What it does: 
+What it does:
     * It downloads a Yahoo satellite background image of the current view port (well, sort of)
 
 What it does NOT:
     * Everything else :-)
- 
+
 What needs to be done:
     * Fix positions
Index: applications/editors/josm/plugins/openlayers/build.xml
===================================================================
--- applications/editors/josm/plugins/openlayers/build.xml	(revision 12778)
+++ applications/editors/josm/plugins/openlayers/build.xml	(revision 12780)
@@ -1,83 +1,72 @@
 <project name="openlayers" default="dist" basedir=".">
-
-  <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
-  <property environment="env"/>
-  <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
-    <and>
-      <os family="windows"/>
-    </and>
-  </condition>
-
-  <!-- compilation properties -->
-  <property name="josm.build.dir"	value="../../core"/>
-  <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
-  <property name="josm"			    location="../../core/dist/josm-custom.jar" />
-  <property name="plugin.build.dir"	value="build"/>
-  <property name="plugin.dist.dir"	value="../../dist"/>
-  <property name="plugin.name"		value="${ant.project.name}"/>
-  <property name="plugin.jar"		value="../../dist/${plugin.name}.jar"/>
-
-  <property name="ant.build.javac.target" value="1.5"/>
-
-  <!-- All jar files needed -->
-  <fileset id="required_libs" dir="lib">
-    <include name="cobra.jar"/>
-    <include name="js.jar"/>
-    <include name="ehcache-1.4.1.jar"/>
-    <include name="backport-util-concurrent-3.0.jar"/> <!-- needed by ehcache -->
-    <include name="commons-logging-1.0.4.jar"/> <!--needed by ehcache -->
-  </fileset>
-
-  <target name="init">
-    <mkdir dir="build"></mkdir>
-    <mkdir dir="dist"></mkdir>
-  </target>
-	
-  <target name="compile" depends="init">
-    <echo message="creating ${plugin.jar}"/>
-    <javac srcdir="src" debug="true" destdir="build">
-        <classpath>
-            <path path="../../core/dist/josm-custom.jar"/>
-            <fileset refid="required_libs"/>
-        </classpath>
-    </javac>
-  </target>
-	
-  <target name="dist" depends="compile">
-	<!-- jars -->
-  	<!-- TODO: instead of adding library code to the plugin jar, JOSM should 
-  	     have some kind of library dir loaded in the classpath -->
-	<unjar dest="build">
-		<fileset refid="required_libs" />
-	</unjar>
-
-  	<!-- images -->
-    <copy todir="build/images">
-      <fileset dir="images" />
-    </copy>
-  	
-  	<!--resources -->
-    <copy todir="build/resources">
-      <fileset dir="resources" />
-    </copy>
-    
-    <!-- create josm-custom.jar -->
-    <jar destfile="${plugin.jar}" basedir="build">
-      <manifest>
-        <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.openLayers.OpenLayersPlugin" />
-        <attribute name="Plugin-Description" value="Displays an OpenLayers background image" />
-        <attribute name="Class-Path" value="cobra.jar js.jar ehcache-1.4.1.jar commons-logging-1.0.4.jar backport-util-concurrent-3.0.jar" />
-      </manifest>
-    </jar>
-  </target>
-  
-  <target name="clean">
-    <delete dir="${plugin.build.dir}" />
-    <delete file="${plugin.jar}" />
-  </target>
-  
-  <target name="install" depends="dist">
-    <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-  </target>
-
+<!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
+    <property environment="env"/>
+    <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
+        <and>
+            <os family="windows"/>
+        </and>
+    </condition>
+<!-- compilation properties -->
+    <property name="josm.build.dir"   value="../../core"/>
+    <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
+    <property name="josm"             location="../../core/dist/josm-custom.jar" />
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.dist.dir"  value="../../dist"/>
+    <property name="plugin.name"      value="${ant.project.name}"/>
+    <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+<!-- All jar files needed -->
+    <fileset id="required_libs" dir="lib">
+        <include name="cobra.jar"/>
+        <include name="js.jar"/>
+        <include name="ehcache-1.4.1.jar"/>
+        <include name="backport-util-concurrent-3.0.jar"/>
+<!-- needed by ehcache -->
+        <include name="commons-logging-1.0.4.jar"/>
+<!--needed by ehcache -->
+    </fileset>
+    <target name="init">
+        <mkdir dir="build"></mkdir>
+        <mkdir dir="dist"></mkdir>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" debug="true" destdir="build">
+            <classpath>
+                <path path="../../core/dist/josm-custom.jar"/>
+                <fileset refid="required_libs"/>
+            </classpath>
+        </javac>
+    </target>
+    <target name="dist" depends="compile">
+<!-- jars -->
+<!-- TODO: instead of adding library code to the plugin jar, JOSM should
+         have some kind of library dir loaded in the classpath -->
+        <unjar dest="build">
+            <fileset refid="required_libs" />
+        </unjar>
+<!-- images -->
+        <copy todir="build/images">
+            <fileset dir="images" />
+        </copy>
+<!--resources -->
+        <copy todir="build/resources">
+            <fileset dir="resources" />
+        </copy>
+<!-- create josm-custom.jar -->
+        <jar destfile="${plugin.jar}" basedir="build">
+            <manifest>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.openLayers.OpenLayersPlugin" />
+                <attribute name="Plugin-Description" value="Displays an OpenLayers background image" />
+                <attribute name="Class-Path" value="cobra.jar js.jar ehcache-1.4.1.jar commons-logging-1.0.4.jar backport-util-concurrent-3.0.jar" />
+            </manifest>
+        </jar>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}" />
+        <delete file="${plugin.jar}" />
+    </target>
+    <target name="install" depends="dist">
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
 </project>
Index: applications/editors/josm/plugins/openlayers/resources/ehcache.xml
===================================================================
--- applications/editors/josm/plugins/openlayers/resources/ehcache.xml	(revision 12778)
+++ applications/editors/josm/plugins/openlayers/resources/ehcache.xml	(revision 12780)
@@ -5,5 +5,5 @@
     ==========================
     An ehcache.xml corresponds to a single CacheManager.
-    
+
     See instructions below or the ehcache schema (ehcache.xsd) on how to configure.
 
@@ -170,7 +170,7 @@
     Sets the maximum number of objects that will be created in memory
 
-	maxElementsOnDisk:
+    maxElementsOnDisk:
     Sets the maximum number of objects that will be maintained in the DiskStore
-	The default value is zero, meaning unlimited.
+    The default value is zero, meaning unlimited.
 
     eternal:
@@ -211,5 +211,5 @@
     Each spool buffer is used only by its cache. If you get OutOfMemory errors consider
     lowering this value. To improve DiskStore performance consider increasing it. Trace level
-    logging in the DiskStore will show if put back ups are occurring. 
+    logging in the DiskStore will show if put back ups are occurring.
 
     memoryStoreEvictionPolicy:
@@ -468,5 +468,5 @@
     </cache>
 
-    
+
 
 
Index: applications/editors/josm/plugins/openlayers/resources/yahoo.html
===================================================================
--- applications/editors/josm/plugins/openlayers/resources/yahoo.html	(revision 12778)
+++ applications/editors/josm/plugins/openlayers/resources/yahoo.html	(revision 12780)
@@ -1,5 +1,5 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
-   	<!-- The map can not be set to 100%. It hangs -->
+    <!-- The map can not be set to 100%. It hangs -->
     <style type="text/css">
         #map {
@@ -11,29 +11,29 @@
     <script type="text/javascript" src="http://www.openlayers.org/api/OpenLayers.js"></script>
     <script type="text/javascript">
-    	// There seems to be a problem with this function and the Java JS engine, as the computed style 
-    	// does not have the function getPropertyValue.
-		OpenLayers.Element.getStyle =  function(element, style) {
-	        element = OpenLayers.Util.getElement(element);
-	        var value = element.style[OpenLayers.String.camelize(style)];
-	        if (!value) {
-	            if (document.defaultView && 
-	                document.defaultView.getComputedStyle && false) {
-	                
-	                var css = document.defaultView.getComputedStyle(element, null);
-	                value = css ? css.getPropertyValue(style) : null;
-	            } else if (element.currentStyle) {
-	                value = element.currentStyle[OpenLayers.String.camelize(style)];
-	            }
-	        }
-	    
-	        var positions = ['left', 'top', 'right', 'bottom'];
-	        if (window.opera &&
-	            (OpenLayers.Util.indexOf(positions,style) != -1) &&
-	            (OpenLayers.Element.getStyle(element, 'position') == 'static')) { 
-	            value = 'auto';
-	        }
-	    
-	        return value == 'auto' ? null : value;
-	    }
+        // There seems to be a problem with this function and the Java JS engine, as the computed style
+        // does not have the function getPropertyValue.
+        OpenLayers.Element.getStyle =  function(element, style) {
+            element = OpenLayers.Util.getElement(element);
+            var value = element.style[OpenLayers.String.camelize(style)];
+            if (!value) {
+                if (document.defaultView &&
+                    document.defaultView.getComputedStyle && false) {
+
+                    var css = document.defaultView.getComputedStyle(element, null);
+                    value = css ? css.getPropertyValue(style) : null;
+                } else if (element.currentStyle) {
+                    value = element.currentStyle[OpenLayers.String.camelize(style)];
+                }
+            }
+
+            var positions = ['left', 'top', 'right', 'bottom'];
+            if (window.opera &&
+                (OpenLayers.Util.indexOf(positions,style) != -1) &&
+                (OpenLayers.Element.getStyle(element, 'position') == 'static')) {
+                value = 'auto';
+            }
+
+            return value == 'auto' ? null : value;
+        }
     </script>
     <script type="text/javascript">
@@ -56,16 +56,16 @@
             var mapDiv = document.getElementById("map");
             if( !mapDiv ) return;
-            
+
             mapDiv.style.width = width;
             mapDiv.style.height = height;
-            
+
             if( map )
                 map.updateSize();
         }
-        
+
         function zoomMapToExtent(left, bottom, right, top)
         {
             if( !map ) return;
-            
+
             map.zoomToExtent( new OpenLayers.Bounds(left, bottom, right, top) );
             var extent = map.getExtent();
@@ -78,5 +78,5 @@
     </script>
   </head>
-  
+
   <body onload="init()" style="overflow:hidden; margin: 0; padding: 0;">
     <div id="overlay" style="background:white;opacity:0.5;z-index:10;">
