Compare commits
2 commits
4e9e8b082e
...
66f044bee3
| Author | SHA1 | Date | |
|---|---|---|---|
| 66f044bee3 | |||
| c09800521c |
55 changed files with 90 additions and 74 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue