From 18475cd3c6a8f0417b9025a0ba2059ba09731ef4 Mon Sep 17 00:00:00 2001
From: imbajin
%s` (htmlEscape (strings.TrimRight "\n" $inner)) -}}
@@ -29,6 +43,7 @@
{{- $id := printf "td-filetree-%s-f%d" (md5 $page.RelPermalink) .Ordinal -}}
{{- $classes := slice "td-filetree" -}}
{{- if $static }}{{ $classes = $classes | append "td-filetree--static" }}{{ end -}}
+ {{- if and $wrap (not $static) }}{{ $classes = $classes | append "td-filetree--wrap" }}{{ end -}}
{{- if not $parsed.hasComments }}{{ $classes = $classes | append "td-filetree--plain" }}{{ end -}}
{{- with $policy.class }}{{ $classes = $classes | append . }}{{ end -}}
{{- $count := len $nodes -}}
diff --git a/tests/goldens/html/authors-index.html b/tests/goldens/html/authors-index.html
index 5e281ae7..8db36240 100644
--- a/tests/goldens/html/authors-index.html
+++ b/tests/goldens/html/authors-index.html
@@ -1005,6 +1005,13 @@
id="m-fixturesdownload-demo">Download data demo
Storage directory comments
Unbroken comment
Compact comments
Wrapped comments
The first static figure remains readable without JavaScript.
The second static figure keeps its caption and author order.