Skip to content

Commit 2a2b482

Browse files
authored
Merge pull request #920 from rust-embedded/split-on-write
Split on the start of attribute instead of the end
2 parents a89a90d + 0f21f90 commit 2a2b482

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,7 @@ jobs:
144144
- { chip: MKW22D5 }
145145
- { chip: MK02F12810 }
146146
# Silicon Labs
147-
# TODO: fix doc rendering bug when math `>` is present in description
148-
#- { chip: SIM3L1x8_SVD }
147+
- { chip: SIM3L1x8_SVD }
149148
# Nordic chips
150149
- { chip: nrf51, options: "-- -f register_mod::s:_mod" }
151150
- { chip: nrf52, options: "-- -f register_mod::s:_mod" }

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
2020
- Update `svd-rs` to 0.14.11
2121
- Added `#![cfg_attr(docsrs, feature(doc_auto_cfg))]` to the generated library code. This
2222
adds a display of the feature gates in the documentation of the generated library
23+
- Split on the start of attribute instead of the end
2324

2425
## [v0.35.0] - 2024-11-12
2526

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ Ignore this option if you are not building your own FPGA based soft-cores."),
353353
let filename = if config.make_mod { "mod.rs" } else { "lib.rs" };
354354
let mut file = File::create(path.join(filename)).expect("Couldn't create output file");
355355

356-
let data = items.to_string().replace("] ", "]\n");
356+
let data = items.to_string().replace(" # [", "\n#[");
357357
file.write_all(data.as_ref())
358358
.expect("Could not write code to lib.rs");
359359

0 commit comments

Comments
 (0)