1
8
Fork
You've already forked miette
0

feature: add support for disabling the primary label line/col information #419

Merged
Zij-IT merged 1 commit from main into main 2025年03月02日 02:56:48 +01:00
Zij-IT commented 2025年01月11日 19:07:39 +01:00 (Migrated from github.com)
Copy link

This is an attempt to tackle #91 by using the with_primary_span_start (default) and without_primary_span_start options.

This keeps the current behavior unchanged, but allows the user to turn off the line:col information displayed for a report whose primary span extends across multiple lines. A short example:

// This
 ×ばつ decoding error
 ╭─[2:5]
 1 │ malformed
 2 │ h�XYZ
 · ┬
 · ╰── valid data here
 ╰────
// Becomes
 ×ばつ decoding error
 ╭────
 1 │ malformed
 2 │ h�XYZ
 · ┬
 · ╰── valid data here
 ╰────
This is an attempt to tackle #91 by using the `with_primary_span_start` (default) and `without_primary_span_start` options. This keeps the current behavior unchanged, but allows the user to turn off the line:col information displayed for a report whose primary span extends across multiple lines. A short example: ``` // This ×ばつ decoding error ╭─[2:5] 1 │ malformed 2 │ h�XYZ · ┬ · ╰── valid data here ╰──── // Becomes ×ばつ decoding error ╭──── 1 │ malformed 2 │ h�XYZ · ┬ · ╰── valid data here ╰──── ```
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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
zkat/miette!419
Reference in a new issue
zkat/miette
No description provided.
Delete branch "main"

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?