From 11e3a3b15fc26471207c4a34bbfaffeeb8693a0e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?=
Date: Thu, 1 Feb 2024 10:25:59 +0100
Subject: [PATCH] _html: Add newlines to some closing HTML tags
---
qsgen2 | 39 +++++++++++++++++++--------------------
1 file changed, 19 insertions(+), 20 deletions(-)
diff --git a/qsgen2 b/qsgen2
index 95c7bc6..2e02b8e 100755
--- a/qsgen2
+++ b/qsgen2
@@ -810,56 +810,55 @@ function _html() {
local html_content=$( echo "${content}" | sed \
-e "s|#[bB][rR]|
|g" \
-e "s|#[bB]||g" \
- -e "s|#[eE][bB]||g" \
+ -e "s|#[eE][bB]|\n|g" \
-e "s|#[iI]||g" \
-e "s|#[eE][iI]||g" \
-e "s|#[pP]||g" \
- -e "s|#[eE][pP]|
|g" \
+ -e "s|#[eE][pP]|
\n|g" \
-e "s|#[hH]1||g" \
-e "s|#[hH]2||g" \
-e "s|#[hH]3||g" \
-e "s|#[hH]4||g" \
-e "s|#[hH]5||g" \
-e "s|#[hH]6||g" \
- -e "s|#[eE][hH]1|
|g" \
- -e "s|#[eE][hH]2||g" \
- -e "s|#[eE][hH]3||g" \
- -e "s|#[eE][hH]4||g" \
- -e "s|#[eE][hH]5||g" \
- -e "s|#[eE][hH]6||g" \
+ -e "s|#[eE][hH]1|\n|g" \
+ -e "s|#[eE][hH]2|\n|g" \
+ -e "s|#[eE][hH]3|\n|g" \
+ -e "s|#[eE][hH]4|\n|g" \
+ -e "s|#[eE][hH]5|\n|g" \
+ -e "s|#[eE][hH]6|\n|g" \
-e "s|#[sS][tT][rR][oO][nN][gG]||g" \
-e "s|#[eE][sS][tT][rR][oO][nN][gG]||g" \
-e "s|#[eE][mM]||g" \
-e "s|#[eE][eE][mM]||g" \
-e "s|#[dD][iI][vV]||g" \
- -e "s|#[eE][dD][iI][vV]|
|g" \
+ -e "s|#[eE][dD][iI][vV]|\n|g" \
-e "s|#[sS][pP][aA][nN]||g" \
- -e "s|#[eE][sS][pP][aA][nN]||g" \
+ -e "s|#[eE][sS][pP][aA][nN]|\n|g" \
-e "s|#[uU][lL]||g" \
-e "s|#[oO][lL]||g" \
-e "s|#[lL][iI]|- |g" \
- -e "s|#[eE][uU][lL]|
|g" \
- -e "s|#[eE][oO][lL]||g" \
- -e "s|#[eE][lL][iI]||g" \
+ -e "s|#[eE][uU][lL]|\n|g" \
+ -e "s|#[eE][oO][lL]|\n|g" \
+ -e "s|#[eE][lL][iI]|\n|g" \
-e "s|#[uU]||g" \
-e "s|#[eE][uU]||g" \
- -e "s|#[eE][lL][iI]||g" \
-e "s|#[tT][aA][bB][lL][eE]||g" \
- -e "s|#[eE][tT][aA][bB][lL][eE]|
|g" \
+ -e "s|#[eE][tT][aA][bB][lL][eE]|\n|g" \
-e "s|#[tT][rR]||g" \
- -e "s|#[eE][tT][rR]|
|g" \
+ -e "s|#[eE][tT][rR]|\n|g" \
-e "s|#[tT][dD]||g" \
- -e "s|#[eE][tT][dD]| | |g" \
+ -e "s|#[eE][tT][dD]|\n|g" \
-e "s|#[tT][hH]||g" \
- -e "s|#[eE][tT][hH]| | |g" \
+ -e "s|#[eE][tT][hH]|\n|g" \
-e "s|#[aA][rR][tT]||g" \
-e "s|#[eE][aA][rR][tT]||g" \
-e "s|#[sS][eE][cC][tT]||g" \
- -e "s|#[eE][sS][eE][cC][tT]||g" \
+ -e "s|#[eE][sS][eE][cC][tT]|\n|g" \
-e "s|#[aA][sS][iI][dD][eE]||g" \
-e "s|#[nN][aA][vV]||g" \
+ -e "s|#[eE][nN][aA][vV]|\n|g" \
-e "s|#[bB][tT][nN]||g" \
-e "s|#[sS][lL][cC][tT]|