Skip to content

Commit 663e151

Browse files
committed
disable respace
1 parent 1760b5e commit 663e151

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
88
## [Unreleased]
99

1010
- Use marker struct instead of address in `Periph` with `PeripheralSpec` trait
11+
- Disable whitespace merging in `respace`
1112

1213
## [v0.37.1] - 2025-10-17
1314

src/util.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,7 @@ pub fn sanitize_keyword(sc: Cow<str>) -> Cow<str> {
148148
}
149149

150150
pub fn respace(s: &str) -> String {
151-
s.split_whitespace()
152-
.collect::<Vec<_>>()
153-
.join(" ")
154-
.replace(r"\n", "\n")
151+
s.replace(r"\n", "\n")
155152
}
156153

157154
pub fn escape_brackets(s: &str) -> String {

0 commit comments

Comments
 (0)