Skip to content

Conversation

@1dimir
Copy link
Contributor

@1dimir 1dimir commented Apr 21, 2024

  • Reduce max_width for rustfmt: 85 -> 81 - to fit into blocks with line numbers;
  • Apply rustfmt for code chunks with long lines;
  • Reorganize long use statement;
  • Manually wrap long strings in macros;

#2012

1dimir added 3 commits April 20, 2024 23:08
* Reduce `max_width` for `rustfmt`: 85 -> 81 - to fit into blocks with line numbers;
* Apply `rustfmt` for spilling code chunks;
* Reorganize long `use` statement;
* Manually wrap long strings in macros;
@1dimir
Copy link
Contributor Author

1dimir commented Apr 21, 2024

That's funny. 81 produces a lot of false positives and 85 wants to reconstruct back the wrapped expressions. And I'm not certain, if to use #[rustfmt::skip] for those is the right idea.

@mgeisler
Copy link
Collaborator

As mentioned in #2012, dprint fmt should be used to format both Rust and Markdown code consistently.

Copy link
Collaborator

@mgeisler mgeisler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's put this on pause until we're done discussing in #2012.

@mgeisler
Copy link
Collaborator

This PR might benefit from the work of @michael-kerscher in #2258. That is, perhaps the slide evaluator could also detect and flag scrollbars in code blocks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants