| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
* Preserve quote, brace, and safe bare styles during ordinary writes. * Fall back to braces when edits make stale bare metadata unsafe. * Retain brace defaults for values created without parser metadata.
| Back | FazBrowse Home | New Git URL |
Summary
Closes #592.
Validation
The safety rule also turns eight formerly skipped matrix combinations into executable assertions because ordinary text with stale bare metadata now has an unambiguous enclosed result.
Review note
This changes default formatting but preserves semantics and reduces unrelated diffs. Callers that require uniform braces can still configure AddEnclosingMiddleware(reuse_previous_enclosing=False, ...) explicitly.
The edited-bare guard is important: blindly applying no-enclosing parser metadata after a value changes can emit invalid BibTeX. An explicit field.enclosing = "no-enclosing" demand still takes precedence for callers intentionally supplying a valid bare expression.
AI assistance
This pull request was prepared with ChatGPT Codex using GPT-5.6 Sol with high reasoning effort. Codex assisted with default-policy analysis, unsafe-edit discovery, matrix refinement, and validation. Automated validation is not a substitute for maintainer review.