Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
[#915](https://github.com/nextcloud/cookbook/pull/915) @MarcelRobitaille
- Fix regression in #900 to allow inserting links to other recipes again
[#914](https://github.com/nextcloud/cookbook/pull/914) @MarcelRobitaille
- Replace multiple spaces with a single one when pasting
[#924](https://github.com/nextcloud/cookbook/pull/924) @MarcelRobitaille

### Documentation
- Introduction about how to start coding
Expand Down Expand Up @@ -256,7 +258,7 @@
[#751](https://github.com/nextcloud/cookbook/pull/751) @christianlupus
- Removed obsolete dependency on @nextcloud/event-bus
[#719](https://github.com/nextcloud/cookbook/pull/719) @christianlupus


## 0.8.4 - 2021-03-08

Expand Down
8 changes: 8 additions & 0 deletions src/components/EditInputGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,14 @@ export default {
inputLinesArray[i] = inputLinesArray[i].slice(prefixLength)
}

// Replace multiple whitespace characters with a single space
// This has to be applied to each item in the list if we don't want
// to accidentally replace all newlines with spaces before splitting
// Fixes #713
for (let i = 0; i < inputLinesArray.length; ++i) {
inputLinesArray[i] = inputLinesArray[i].replaceAll(/\s+/g, " ")
}

for (let i = 0; i < inputLinesArray.length; ++i) {
this.addNewEntry(
$insertedIndex + i + 1,
Expand Down