Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Remove #jinja2 instructions from the output

Open
#1,192 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
backend

Research direction

Start by reproducing the issue with a template containing a #jinja2: trim_blocks:False line and trace how jinjava renders that input. Identify where template directives or output lines are handled; done means these instruction lines no longer appear in the rendered output without interpreting their options.

Written by the indexing model from the issue text.

Description

I'm using jinjava to test ansible templates, and I've noticed that these template sometimes contain lines such as:

#jinja2: trim_blocks:False

and these lines are kept in the output file. I was wondering if it would be possible, if not to interpret them, to ignore them?

Dominant language
Java
Stars
785
Forks
184
Avg merge
6d 22h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from HubSpot/jinjava

All issues in HubSpot/jinjava

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.