diff --git a/qsgen2 b/qsgen2 index 72e2e88..a4de20f 100755 --- a/qsgen2 +++ b/qsgen2 @@ -641,7 +641,8 @@ function _html() { local debug=true if (${debug}) echo "${red}_html: Generating HTML for ${1}${end}" - sed -i -- "s|\#BR|
\n|g" \ + echo ${1} | sed \ + -e "s|\#BR|
\n|g" \ -e "s|\#BD||g" \ -e "s|\#EBD||g" \ -e "s|\#UN||g" \ @@ -679,8 +680,7 @@ function _html() { -e "s|\#EH6|\n|g" \ -e "s|\#LT|\<|g" \ -e "s|\#GT|\>|g" \ - -e "s|\#NUM|\#|g" \ - ${1} + -e "s|\#NUM|\#|g" }