about summary refs log tree commit diff
path: root/main.c
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2024-02-23 19:48:19 -0500
committerZach DeCook <zachdecook@librem.one>2024-02-23 19:48:19 -0500
commit7d0aad474d7d6d05d5186238a099ab515aed4c71 (patch)
tree5d5080aaa1e3e4c50279bc69c4bf4c2518cc645e /main.c
parentcec1b19aefc47a0e1163a7402295fee7b7533829 (diff)
downloadshemuvi-7d0aad474d7d6d05d5186238a099ab515aed4c71.tar.gz
Verovio Options: set options before loading file
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index ac26c07..e217f10 100644
--- a/main.c
+++ b/main.c
@@ -28,11 +28,12 @@ static void set_file (GFile *file, gpointer data) {
 	fclose(cfile);
 	if (read == 0) return;
 	
-	vrvToolkit_loadData(pointer, buf);
 	// Try to put all of the content on the first page.
 	//--page-height 50000
 	//--adjust-page-height
-	 vrvToolkit_setOptions(pointer, "{\"pageHeight\": 50000, \"adjustPageHeight\": true}");
+	//--breaks smart
+	vrvToolkit_setOptions(pointer, "{\"pageHeight\": 50000, \"adjustPageHeight\": true, \"breaks\": \"smart\"}");
+	vrvToolkit_loadData(pointer, buf);
 	output = vrvToolkit_renderToSVG(pointer, 1, TRUE);
 	if(output[0] == '\0') return;