Trailing space in elements is swallowed #58

Closed
opened 2024-11-26 17:34:50 +01:00 by wetneb · 0 comments
Owner

Some grammars include trailing whitespace in the span of some elements, which Mergiraf can inadequately strip in some cases.

Base

[foo]
hello = "world"

[bar]
test = 1

Left

[foo]
hello = "world"
bar = 4

[bar]
test = 1

Right

[foo]
hello = "world"
wiki = 98

[bar]
test = 1

Expected

[foo]
hello = "world"
bar = 4
wiki = 98

[bar]
test = 1

Actual

[foo]
hello = "world"
bar = 4
wiki = 98[bar]
test = 1
Some grammars include trailing whitespace in the span of some elements, which Mergiraf can inadequately strip in some cases. ### Base ```toml [foo] hello = "world" [bar] test = 1 ``` ### Left ```toml [foo] hello = "world" bar = 4 [bar] test = 1 ``` ### Right ```toml [foo] hello = "world" wiki = 98 [bar] test = 1 ``` ### Expected ```toml [foo] hello = "world" bar = 4 wiki = 98 [bar] test = 1 ``` ### Actual ```toml [foo] hello = "world" bar = 4 wiki = 98[bar] test = 1 ```
wetneb self-assigned this 2024-11-26 17:35:57 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: mergiraf/mergiraf#58
No description provided.