summaryrefslogtreecommitdiff
path: root/viewhtml
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2020-08-12 19:55:18 +0200
committerAki <please@ignore.pl>2020-08-12 19:55:18 +0200
commit2cb755e90018efe04e8569ec1c9d509b8ae2c7ce (patch)
tree4ca9df24f5bef5e0b3189c2502448875a16499ca /viewhtml
parenta745c4af25f4aaa92ddb493f185a96ff1c970e16 (diff)
downloadbrowse-2cb755e90018efe04e8569ec1c9d509b8ae2c7ce.zip
browse-2cb755e90018efe04e8569ec1c9d509b8ae2c7ce.tar.gz
browse-2cb755e90018efe04e8569ec1c9d509b8ae2c7ce.tar.bz2
Minor changes to block rendering
Diffstat (limited to 'viewhtml')
-rwxr-xr-xviewhtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/viewhtml b/viewhtml
index a48e1d4..7a03591 100755
--- a/viewhtml
+++ b/viewhtml
@@ -83,7 +83,7 @@ proc displayNode {w node tagList} {
# TODO: Handle margins and blocks better than this.
if {$tag == "h1" || $tag == "h2" || $tag == "p"} {
$w insert end "\n\n" {}
- } elseif {$tag == "pre" || $tag == "li" || $tag == "dt" || $tag == "ul" || $tag == "dd" || $tag == "dl"} {
+ } elseif {$tag == "pre" || $tag == "li" || $tag == "dt" || $tag == "ul" || $tag == "dd" || $tag == "dl" || $tag == "div" || $tag == "br"} {
$w insert end "\n" {}
}
} elseif {$type == $gumbo::GUMBO_NODE_TEXT} {