Skip to content

Commit 3c302ba

Browse files
committed
disable respace
1 parent e100619 commit 3c302ba

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
2222
- Added `#![cfg_attr(docsrs, feature(doc_auto_cfg))]` to the generated library code. This
2323
adds a display of the feature gates in the documentation of the generated library
2424
- Split on the start of attribute instead of the end
25+
- Disable whitespace merging in `respace`
2526

2627
## [v0.35.0] - 2024-11-12
2728

src/util.rs

+1-4
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)