hugo/tpl
Khayyam Saleem c0d15a2897
strings: fix Truncate behavior for formatted html
Before this fix, strings.Truncate would erroneously re-include
attributes from the opening tag in the closing tag when closing
formatted html, due to a bug in how tagnames were extracted from the
regex capture group for html tags used in `truncate.go`. This change
ensures that only the tagname is retained and all attributes are discarded
when storing the tags for closing them later.

Fixes #10399
2023-03-01 17:59:50 +01:00
..
cast Add a page template func 2023-02-25 19:53:18 +01:00
collections Add a page template func 2023-02-25 19:53:18 +01:00
compare Add a page template func 2023-02-25 19:53:18 +01:00
crypto Add a page template func 2023-02-25 19:53:18 +01:00
css Add a page template func 2023-02-25 19:53:18 +01:00
data Replace deprecated ioutil with io and os 2023-03-01 16:28:43 +01:00
debug Add a page template func 2023-02-25 19:53:18 +01:00
diagrams Add a page template func 2023-02-25 19:53:18 +01:00
encoding Add a page template func 2023-02-25 19:53:18 +01:00
fmt Add a page template func 2023-02-25 19:53:18 +01:00
hugo Add a page template func 2023-02-25 19:53:18 +01:00
images Add a page template func 2023-02-25 19:53:18 +01:00
inflect Add a page template func 2023-02-25 19:53:18 +01:00
internal Add a page template func 2023-02-25 19:53:18 +01:00
js Add a page template func 2023-02-25 19:53:18 +01:00
lang Add a page template func 2023-02-25 19:53:18 +01:00
math Add a page template func 2023-02-25 19:53:18 +01:00
openapi Replace deprecated ioutil with io and os 2023-03-01 16:28:43 +01:00
os Add a page template func 2023-02-25 19:53:18 +01:00
page Add a page template func 2023-02-25 19:53:18 +01:00
partials Replace deprecated ioutil with io and os 2023-03-01 16:28:43 +01:00
path Add a page template func 2023-02-25 19:53:18 +01:00
reflect Add a page template func 2023-02-25 19:53:18 +01:00
resources Add a page template func 2023-02-25 19:53:18 +01:00
safe Add a page template func 2023-02-25 19:53:18 +01:00
site Add a page template func 2023-02-25 19:53:18 +01:00
strings strings: fix Truncate behavior for formatted html 2023-03-01 17:59:50 +01:00
templates Add a page template func 2023-02-25 19:53:18 +01:00
time Add a page template func 2023-02-25 19:53:18 +01:00
tplimpl Add a page template func 2023-02-25 19:53:18 +01:00
transform Replace deprecated ioutil with io and os 2023-03-01 16:28:43 +01:00
urls Add a page template func 2023-02-25 19:53:18 +01:00
template.go Add a page template func 2023-02-25 19:53:18 +01:00
template_info.go Add --printUnusedTemplates 2022-02-15 20:01:57 +01:00
template_test.go Fix Plainify edge cases 2022-05-25 17:55:23 +02:00