From bef9f0fac4e99e99e034ab96fdd7ab58d181d7d5 Mon Sep 17 00:00:00 2001 From: Pierce Corcoran Date: Tue, 8 Dec 2020 10:35:37 -0800 Subject: [PATCH] Move --css to after stylesheet to allow overriding --- aha.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/aha.c b/aha.c index cdffb11..bae4d2d 100644 --- a/aha.c +++ b/aha.c @@ -540,13 +540,6 @@ void printHeader(const struct Options *opts) printHtml(opts->title ? opts->title : opts->filename ? opts->filename : "stdin"); printf("\n"); - if (opts->css) - { - printf("css); - printf("\">\n"); - } - int style_tag = 0; if (opts->stylesheet) { @@ -631,6 +624,14 @@ void printHeader(const struct Options *opts) if (style_tag) printf("\n"); + + if (opts->css) + { + printf("css); + printf("\">\n"); + } + printf("\n"); if (opts->stylesheet)