Clone in a terminal:
Commit 2797ed5
Johan Mattsson - 2013-02-16T08:24:20+00:00
2797ed55c7f509981435aff5beb756ad4e49ef80johan.mattsson.m@gmail.com

space in file names

Changed files (4)

Diff

diff --git a/birdfont-export.sh b/birdfont-export.shindex 4c4b966..792bcad 100755--- a/birdfont-export.sh+++ b/birdfont-export.sh@@ -1,4 +1,4 @@ export LD_LIBRARY_PATH="./build/:$LD_LIBRARY_PATH" PKG_PATH=$(dirname "$(readlink -f "$0")") cd "${PKG_PATH}"-./build/bin/birdfont-export $*+./build/bin/birdfont-export $@diff --git a/libbirdfont/BirdFont.vala b/libbirdfont/BirdFont.valaindex d154bbf..3952052 100644--- a/libbirdfont/BirdFont.vala+++ b/libbirdfont/BirdFont.vala@@ -41,6 +41,7 @@ public static int run_export (string[] arg) { 		 	if (arg.length < 2) { 		print_export_help (arg);+		return -1; 	} 	 	for (int i = 1; i < arg.length; i++) {diff --git a/libbirdfont/ExportTool.vala b/libbirdfont/ExportTool.valaindex 7033f57..1c23cef 100644--- a/libbirdfont/ExportTool.vala+++ b/libbirdfont/ExportTool.vala@@ -470,9 +470,10 @@ os.put_string ( 			export_thread = new ExportThread (temp_file, (!) ttf_file.get_path (), (!) eot_file.get_path ());  			if (async) {-				export_command = @"$(get_birdfont_export ()) --ttf -o $((!) folder.get_path ()) $temp_file";+				export_command = @"$(get_birdfont_export ()) --ttf -o \"$((!) folder.get_path ())\" \"$temp_file\""; 				 				try {+					print (export_command); 					Process.spawn_command_line_async (export_command); 				} catch (Error e) { 					stderr.printf (@"Failed to execute \"$export_command\" \n");diff --git a/libbirdfont/Font.vala b/libbirdfont/Font.valaindex 1233de4..2988536 100644--- a/libbirdfont/Font.vala+++ b/libbirdfont/Font.vala@@ -166,7 +166,7 @@ public class Font : GLib.Object { 	} 		 	public void set_name (string name) {-		string n = name.replace (" ", "");+		string n = name; 		this.name = n; 	} 	@@ -524,10 +524,11 @@ public class Font : GLib.Object { 		File dir = BirdFont.get_backup_directory (); 		File? temp_file = null; 		string backup_file;-	+ 		temp_file = dir.get_child (@"$(name).ffi"); 		backup_file = (!) ((!) temp_file).get_path ();-				+		backup_file = backup_file.replace (" ", "_");+		 		write_font_file (backup_file, true); 		 		return backup_file;

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112