From df3eafb29f80cdb6822e9dedf743066ad015814f Mon Sep 17 00:00:00 2001 From: Govindas Date: Wed, 7 Sep 2022 11:56:44 +0300 Subject: [PATCH] Support tab in raw html parsing --- gsitegen/generate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gsitegen/generate.py b/gsitegen/generate.py index 6b499f9..f001854 100644 --- a/gsitegen/generate.py +++ b/gsitegen/generate.py @@ -97,7 +97,8 @@ def parseRawHTML(doc, line, htmlstring, rawhtml, id, maxlines): #parse indented raw html elif rawhtml: - if line.startswith(" "): + # 2 spaces or tab + if line.startswith(" ") or line.startswith(" "): htmlstring = htmlstring + line.strip()