Compare commits

..

No commits in common. "66f044bee3246e1059e267a4efebce8ec517b79f" and "4e9e8b082ef6755b8f465c398e6db5043b0208b2" have entirely different histories.

55 changed files with 74 additions and 90 deletions

View file

@ -1,9 +1,3 @@
## 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.0a5" version = "0.1.0a4"
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,8 +78,6 @@ 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,11 +8,7 @@ int1:
type: number type: number
default: default:
jinja: >- jinja: >-
{% if rougail.bool %} {% if rougail.bool %}1{% else %}2{% endif %}
1
{% else %}
2
{% endif %}
description: if bool returns 1 otherwise return 2 description: if bool returns 1 otherwise return 2
int2: int2:
@ -20,9 +16,5 @@ int2:
type: number type: number
default: default:
jinja: >- jinja: >-
{% if not rougail.bool %} {% if not rougail.bool %}3{% else %}4{% endif %}
3
{% else %}
4
{% endif %}
description: if bool returns 3 otherwise return 4 description: if bool returns 3 otherwise return 4