Index: /CKReleaser/trunk/includes/samplesprocessor.js
===================================================================
--- /CKReleaser/trunk/includes/samplesprocessor.js	(revision 2900)
+++ /CKReleaser/trunk/includes/samplesprocessor.js	(revision 2901)
@@ -88,4 +88,13 @@
 		}
 
+		/**
+		 * FIXME: No matter how do we set the OutputKeys.METHOD in CKRELEASER.xml.saveXml
+		 * there is always something wrong.
+		 * Setting "text" removes all tags.
+		 * Setting "html" adds uppercased Meta tag, even if meta tag already exists.
+		 * Setting "xml" moves first comment above doctype declaration.
+		 * So instead of simply saving the xml file, we have to take the template file and 
+		 * replace only head and body tags in it.
+		 */
 		replacement.head = CKRELEASER.xml.asXml( newDocument, newDocument.getElementsByTagName( 'head' ).item( 0 ) );
 		replacement.body = CKRELEASER.xml.asXml( newDocument, newDocument.getElementsByTagName( 'body' ).item( 0 ) );
@@ -94,6 +103,4 @@
 		result = String( regexLib.body.matcher( result ).replaceAll( replacement.body ) );
 		result = String( regexLib.script.matcher( result ).replaceAll( "<script $1></script>" ) );
-		// FIXME: dirt hack, sample.html template includes ckeditor_source.js
-		result = result.replace( /_source\.js/g, ".js" );
 
 		print( "    Created sample " + targetLocation.getName() );
