From 2001e70162967cbfcb6fec31ad54e55d28710141 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 18 Oct 2018 08:54:24 +0200 Subject: Set paragraph spacing from stylesheet --- src/sc_interp.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); } -- cgit v1.2.3