mirror of
https://github.com/tufanbarisyildirim/gonginx.git
synced 2026-04-27 00:35:51 +03:00
[GH-ISSUE #26] Dumper does not preserve the formatting in Lua blocks. #11
Labels
No labels
bug
enhancement
good first issue
pull-request
question
v2
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gonginx#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tufanbarisyildirim on GitHub (Oct 18, 2023).
Original GitHub issue: https://github.com/tufanbarisyildirim/gonginx/issues/26
Originally assigned to: @tufanbarisyildirim on GitHub.
then the code
gonginx.DumpBlock(conf.Block, gonginx.IndentStyle)will dump this result:it's worse when dump it several times @tufanbarisyildirim
Originally posted by @FeiYing9 in https://github.com/tufanbarisyildirim/gonginx/issues/20#issuecomment-1767876836
@tufanbarisyildirim commented on GitHub (Feb 20, 2026):
Thanks for reporting this. I re-checked against current
mainand this appears to be resolved now.Verification I ran:
go test ./parser -run 'TestParser_Issue20|TestParser_Issue22'(passes)set_by_lua_blocksample and ran parse -> dump multiple times; output stays stable and preserves multiline Lua content instead of flattening it.Closing this as fixed in current code.