From e8e0a21a7fe00d489f36911f2a5ef56bb226f7b4 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Wed, 18 Nov 2020 22:00:15 -0700 Subject: [PATCH] Markdown.pl: use passed in prefix for GenerateStyleSheet Although GenerateStyleSheet did, in fact, accept a prefix argument (properly defaulting if omitted), it was not using the passed in prefix. Correct that so the style sheet can be generated using any desired prefix, but most helpfully using the `style_prefix` as passed in to the Markdown function. Signed-off-by: Kyle J. McKay --- Markdown.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Markdown.pl b/Markdown.pl index 39ccd0c..0fd029c 100755 --- a/Markdown.pl +++ b/Markdown.pl @@ -556,7 +556,7 @@ sub GenerateStyleSheet { my $prefix = shift; defined($prefix) or $prefix = $g_style_prefix; my $stylesheet = $g_style_sheet; - $stylesheet =~ s/%\(base\)/$g_style_prefix/g; + $stylesheet =~ s/%\(base\)/$prefix/g; return $stylesheet; }