diff options
author | Thomas White <taw@bitwiz.me.uk> | 2018-10-18 08:54:24 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2018-10-18 08:54:24 +0200 |
commit | 2001e70162967cbfcb6fec31ad54e55d28710141 (patch) | |
tree | 285e155c4515bbf874bb1c470faaecb8ffcd3951 | |
parent | afad5f6ac5ba0e4b92158c35f23f41688f92b048 (diff) |
Set paragraph spacing from stylesheet
-rw-r--r-- | src/sc_interp.c | 6 |
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); } |