Index: /libcaca/trunk/caca-php/examples/img2txt.php
===================================================================
--- /libcaca/trunk/caca-php/examples/img2txt.php	(revision 3307)
+++ /libcaca/trunk/caca-php/examples/img2txt.php	(revision 3308)
@@ -273,6 +273,6 @@
 		$arg = $opt_and_arg[1];
 		if((substr($opt, 0, 2) == '--')
-	   	&&
-	   	array_key_exists(substr($opt, strlen('--')) . (($arg !== NULL) ? ':' : ''), $long_options))
+			&&
+			array_key_exists(substr($opt, strlen('--')) . (($arg !== NULL) ? ':' : ''), $long_options))
 		{
 			$opt = '-' . $long_options[substr($opt, strlen('--')) . (($arg !== NULL) ? ':' : '')];
@@ -375,5 +375,5 @@
 	if(!$export)
 	{
-		fprintf(STDERR, "%s: Can't export to format '%s'\n", $argv[0], $format);
+		fprintf(STDERR, "%s: Can't export to format '%s'\n", $argv[0], $format?$format:"ansi");
 		return -1;
 	}
