indent filter can indent with arbitrary characters#1167
indent filter can indent with arbitrary characters#1167davidism merged 1 commit intopallets:masterfrom
Conversation
|
Let's do what |
08db4a3 to
520a578
Compare
Allow indention with generic characters, e.g. Tabs. Implemenented the behavior requested in pallets#1167 (comment) The width param can be string or int, if it is string it's the raw indention e.g. "\t". If it's int it's the number of spaces. In other cases an FilterArgumentError is raised, to avoid confusion.
Allow indention with generic characters, e.g. Tabs. Implemenented the behavior requested in pallets#1167 (comment) The width param can be string or int, if it is string it's the raw indention e.g. "\t". If it's int it's the number of spaces. In other cases an FilterArgumentError is raised, to avoid confusion.
520a578 to
36e289e
Compare
Allow indention with generic characters, e.g. Tabs. Implemenented the behavior requested in pallets#1167 (comment) The width param can be string or int, if it is string it's the raw indention e.g. "\t". If it's int it's the number of spaces. In other cases an FilterArgumentError is raised, to avoid confusion.
36e289e to
188e945
Compare
Allow indention with generic characters, e.g. Tabs. Implemenented the behavior requested in pallets#1167 (comment) The width param can be string or int, if it is string it's the raw indention e.g. "\t". If it's int it's the number of spaces. In other cases an FilterArgumentError is raised, to avoid confusion.
188e945 to
e423f78
Compare
Allow indention with generic characters, e.g. Tabs. Implemenented the behavior requested in pallets#1167 (comment) The width param can be string or int, if it is string it's the raw indention e.g. "\t". If it's int it's the number of spaces. In other cases an FilterArgumentError is raised, to avoid confusion.
e423f78 to
c2d9393
Compare
|
Implemented it as requested in #1167 (comment). The reuse of 'width' does'nt look like the finest solution to me, but it fit's my needs. |
|
Why not to introduce an |
|
The original function has an attribute |
Sorry, I indeed wrote a nonsense. What I meant was to accompany |
|
Allow indention with generic characters, e.g. Tabs. Implemenented the behavior requested in pallets#1167 (comment) The width param can be string or int, if it is string it's the raw indention e.g. "\t". If it's int it's the number of spaces. In other cases an FilterArgumentError is raised, to avoid confusion.
c2d9393 to
8016b5f
Compare
Implemenented also indention with tabulator characters instead of
whitespace characters. This will also allow the use of other characters or character sequences. It's the more generic way I already promised in #1166, choose the best and close the other one.
This is needed if this is used within a template with a specified tab indention. ;-)
Kind regards
Lars