# Issue with Code Blocks in antsibull-docs

**URL:** <https://forum.ansible.com/t/issue-with-code-blocks-in-antsibull-docs/40244>\
**Category:** Get Help\
**Tags:** antsibull\
**Created:** [February 13, 2025, 10:01am UTC](https://forum.ansible.com/t/issue-with-code-blocks-in-antsibull-docs/40244 "2025-02-13T10:01:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![breleven](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@breleven](https://forum.ansible.com/u/breleven)\
**Post date:** [February 13, 2025, 10:01am UTC](https://forum.ansible.com/t/issue-with-code-blocks-in-antsibull-docs/40244/1 "2025-02-13T10:01:57Z")

</div>

Hi,

I have a question about code blocks in antsibull.

I use antsibull-docs to create documentation from my roles. In antsibull-docs, I use `C()` to mark a code block. When I want to write `my_function()` in the code block with `C(my_function())`, the code block in the generated documentation looks like this:

```auto
my_function( 

```

It seems that the parser detects only the next “)” as the end of the code block.

Does anyone have an idea how to solve this behavior?

Thanks in advance!
