Compare commits

...

2 commits

Author SHA1 Message Date
66f044bee3 bump: version 0.1.0a4 → 0.1.0a5 2025-03-27 21:45:52 +01:00
c09800521c fix: if and for in 3 lines 2025-03-27 21:45:29 +01:00
55 changed files with 90 additions and 74 deletions

View file

@ -1,3 +1,9 @@
## 0.1.0a5 (2025-03-27)
### Fix
- if and for in 3 lines
## 0.1.0a4 (2025-03-27) ## 0.1.0a4 (2025-03-27)
### Feat ### Feat

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project] [project]
name = "rougail.output_formatter" name = "rougail.output_formatter"
version = "0.1.0a4" version = "0.1.0a5"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}] authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md" readme = "README.md"
description = "Rougail output formatter" description = "Rougail output formatter"

View file

@ -78,6 +78,8 @@ class RougailOutputFormatter:
self.config = Config() self.config = Config()
self.config.profile = 'jinja' self.config.profile = 'jinja'
self.config.line_break_after_multiline_tag = True
self.config.indent = " "
self.original_yaml = RougailUpgrade(rougailconfig).run(filename) self.original_yaml = RougailUpgrade(rougailconfig).run(filename)
datas = RougailUpgrade(rougailconfig).run(filename) datas = RougailUpgrade(rougailconfig).run(filename)

View file

@ -8,7 +8,11 @@ int1:
type: number type: number
default: default:
jinja: >- jinja: >-
{% if rougail.bool %}1{% else %}2{% endif %} {% if rougail.bool %}
1
{% else %}
2
{% endif %}
description: if bool returns 1 otherwise return 2 description: if bool returns 1 otherwise return 2
int2: int2:
@ -16,5 +20,9 @@ int2:
type: number type: number
default: default:
jinja: >- jinja: >-
{% if not rougail.bool %}3{% else %}4{% endif %} {% if not rougail.bool %}
3
{% else %}
4
{% endif %}
description: if bool returns 3 otherwise return 4 description: if bool returns 3 otherwise return 4