aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2018-10-18 08:54:24 +0200
committerThomas White <taw@bitwiz.me.uk>2018-10-18 08:54:24 +0200
commit2001e70162967cbfcb6fec31ad54e55d28710141 (patch)
tree285e155c4515bbf874bb1c470faaecb8ffcd3951
parentafad5f6ac5ba0e4b92158c35f23f41688f92b048 (diff)
Set paragraph spacing from stylesheet
-rw-r--r--src/sc_interp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sc_interp.c b/src/sc_interp.c
index 0b39d00..e357150 100644
--- a/src/sc_interp.c
+++ b/src/sc_interp.c
@@ -1045,6 +1045,12 @@ static void apply_style(SCInterpreter *scin, Stylesheet *ss, const char *path)
result = stylesheet_lookup(ss, fullpath);
if ( result != NULL ) set_padding(sc_interp_get_frame(scin), result);
+ /* Paragraph spacing */
+ strcpy(fullpath, path);
+ strcat(fullpath, ".paraspace");
+ result = stylesheet_lookup(ss, fullpath);
+ if ( result != NULL ) set_paraspace(scin, result);
+
update_bg(scin);
}