Skip to content

Conversation

@jhradilek
Copy link
Owner

In a generated tasks, if an example block directly follows the procedure, the dita-convert utility incorrectly issues the following warning despite not skipping any content:

file.dita: WARNING: Non-list elements found in steps, skipping...

This pull request fixes this issue and also corrects the tests to correctly count expected error and warning messages.

Example AsciiDoc code

:_mod-docs-content-type: PROCEDURE

[#task-id]
= Task title

.Procedure
. A step.

.Example title
====
An example.
====

Implementation checklist

  • The code changes come with the corresponding test cases
  • The code changes pass all tests (run python3 -m unittest in the project directory)
  • The code changes come with appropriate documentation

@jhradilek jhradilek self-assigned this Jun 11, 2025
@jhradilek jhradilek added the bug Something isn't working label Jun 11, 2025
@jhradilek jhradilek merged commit 18d1f9c into main Jun 11, 2025
4 checks passed
@jhradilek jhradilek deleted the fix-example-warning branch June 11, 2025 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants