diff --git a/qsgen2 b/qsgen2
index 2e02b8e..b27fef6 100755
--- a/qsgen2
+++ b/qsgen2
@@ -808,7 +808,7 @@ function _html() {
# Perform HTML tag substitutions handling both lowercase and uppercase QStags
local html_content=$( echo "${content}" | sed \
- -e "s|#[bB][rR]|
|g" \
+ -e "s|#[bB][rR]|
\n|g" \
-e "s|#[bB]||g" \
-e "s|#[eE][bB]|\n|g" \
-e "s|#[iI]||g" \
@@ -835,11 +835,11 @@ function _html() {
-e "s|#[eE][dD][iI][vV]|\n|g" \
-e "s|#[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]|
\n|g" \
- -e "s|#[eE][oO][lL]|\n|g" \
+ -e "s|#[uU][lL]|\n|g" \
+ -e "s|#[oO][lL]|\n|g" \
+ -e "s|#[lL][iI]|\n- |g" \
+ -e "s|#[eE][uU][lL]|\n
\n|g" \
+ -e "s|#[eE][oO][lL]|\n\n|g" \
-e "s|#[eE][lL][iI]|\n|g" \
-e "s|#[uU]||g" \
-e "s|#[eE][uU]||g" \