[GH-ISSUE #50] Dumper does not preserve the formatting for inline comment #22

Closed
opened 2026-02-28 01:20:33 +03:00 by kerem · 0 comments
Owner

Originally created by @cwww3 on GitHub (Aug 13, 2024).
Original GitHub issue: https://github.com/tufanbarisyildirim/gonginx/issues/50

content:
server 127.0.0.3:8000 weight=5; # inline comment: server 127.0.0.3:8000 weight=5
server 127.0.0.3:8001 weight=5; # inline comment: server 127.0.0.3:8000 weight=5

got:
# inline comment: server 127.0.0.3:8000 weight=5
server 127.0.0.3:8000 weight=5;
# inline comment: server 127.0.0.3:8000 weight=5
server 127.0.0.3:8001 weight=5;

expect:
server 127.0.0.3:8000 weight=5; # inline comment: server 127.0.0.3:8000 weight=5
server 127.0.0.3:8001 weight=5; # inline comment: server 127.0.0.3:8000 weight=5

Originally created by @cwww3 on GitHub (Aug 13, 2024). Original GitHub issue: https://github.com/tufanbarisyildirim/gonginx/issues/50 content: server 127.0.0.3:8000 weight=5; # inline comment: server 127.0.0.3:8000 weight=5 server 127.0.0.3:8001 weight=5; # inline comment: server 127.0.0.3:8000 weight=5 got: \# inline comment: server 127.0.0.3:8000 weight=5 server 127.0.0.3:8000 weight=5; \# inline comment: server 127.0.0.3:8000 weight=5 server 127.0.0.3:8001 weight=5; expect: server 127.0.0.3:8000 weight=5; # inline comment: server 127.0.0.3:8000 weight=5 server 127.0.0.3:8001 weight=5; # inline comment: server 127.0.0.3:8000 weight=5
kerem closed this issue 2026-02-28 01:20:34 +03: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
starred/gonginx#22
No description provided.