# Hugo 0.111.2: failure with unclosed shortcodes

**URL:** https://discourse.gohugo.io/t/hugo-0-111-2-failure-with-unclosed-shortcodes/43368
**Category:** support
**Created:** [March 9, 2023, 10:25am UTC](https://discourse.gohugo.io/t/hugo-0-111-2-failure-with-unclosed-shortcodes/43368 "2023-03-09T10:25:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![deining](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/deining/32/13944_2.png) [@deining](https://discourse.gohugo.io/u/deining)
#### Post date: [March 9, 2023, 10:25am UTC](https://discourse.gohugo.io/t/hugo-0-111-2-failure-with-unclosed-shortcodes/43368/1 "2023-03-09T10:25:36Z")

</div>

**Reproduction:**

```auto
git clone --single-branch -b hugo-forum-topic-36924 https://github.com/jmooring/hugo-testing hugo-forum-topic-36924
cd hugo-forum-topic-36924

```

With hugo 0.110.0, I can build this cloned test site without problems:

```auto
$ hugo
Start building sites …
hugo v0.110.0-e32a493b7826d02763c3b79623952e625402b168+extended windows/amd64 BuildDate=2023-01-17T12:16:09Z VendorInfo=gohugoio

                   | EN
-------------------+-----
  Pages | 60
  Paginator pages | 0
  Non-page files | 2
  Static files | 0
  Processed images | 0
  Aliases | 0
  Sitemaps | 0
  Cleaned | 0

Total in 528 ms

```

With hugo 0.111.2, however, building the test site fails:

```auto
$ hugo
Start building sites …
hugo v0.111.2-4164f8fef9d71f50ef3962897e319ab6219a1dad+extended windows/amd64 BuildDate=2023-03-05T12:32:20Z VendorInfo=gohugoio
Error: Error building site: "C:\path\to\hugo-forum-topic-36924\content\diagrams\activity-diagram-actdiag-from-file\index.md:9:1": failed to extract shortcode: unclosed shortcode "kroki"
Total in 335 ms

```

---

<div class="post-metadata">

### Author: ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)
#### Post date: [March 9, 2023, 2:52pm UTC](https://discourse.gohugo.io/t/hugo-0-111-2-failure-with-unclosed-shortcodes/43368/2 "2023-03-09T14:52:03Z")

</div>

This isn’t a regression, this is an improvement. We now detect unclosed shortcodes that needs to be closed.

---

<div class="post-metadata">

### Author: ![jgreely](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jgreely/32/6796_2.png) [@jgreely](https://discourse.gohugo.io/u/jgreely)
#### Post date: [March 9, 2023, 2:54pm UTC](https://discourse.gohugo.io/t/hugo-0-111-2-failure-with-unclosed-shortcodes/43368/3 "2023-03-09T14:54:38Z")

</div>

The new behavior is correct, as per the [docs](https://gohugo.io/templates/shortcode-templates/#inner):

> Any shortcode that refers to .Inner must be closed or self-closed.

---

<div class="post-metadata">

### Author: ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)
#### Post date: [March 11, 2023, 2:55pm UTC](https://discourse.gohugo.io/t/hugo-0-111-2-failure-with-unclosed-shortcodes/43368/4 "2023-03-11T14:55:33Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
