Skip to content

Commit

Permalink
fix: skip additional empty line in MassBank export
Browse files Browse the repository at this point in the history
- Drop the extra empty line in MassBank exports (issue #49).
  • Loading branch information
jorainer committed Oct 31, 2023
1 parent f090674 commit c86c35d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-bioc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ jobs:
fail-fast: false
matrix:
config:
- { os: ubuntu-latest, r: 'devel', bioc: '3.17', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: macOS-latest, r: 'next', bioc: '3.17'}
- { os: windows-latest, r: 'next', bioc: '3.17'}
- { os: ubuntu-latest, r: 'devel', bioc: '3.19', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: macOS-latest, r: 'next', bioc: '3.19'}
- { os: windows-latest, r: 'next', bioc: '3.19'}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: MsBackendMassbank
Title: Mass Spectrometry Data Backend for MassBank record Files
Version: 1.11.0
Version: 1.11.1
Authors@R:
c(person(given = "RforMassSpectrometry Package Maintainer",
email = "maintainer@rformassspectrometry.org",
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# MsBackendMassbank 1.11

## Changes in 1.11.1

- Remove additional empty line at the end of exported MassBank records ([issue
#49](https://github.com/rformassspectrometry/MsBackendMassbank/issues/49)).

# MsBackendMassbank 1.7

## Changes in 1.7.4
Expand Down
2 changes: 1 addition & 1 deletion R/functions-massbank.R
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ metaDataBlocks <- function() {
as.integer(peaksData(x[i])[[1]][,2] /
max(peaksData(x[i])[[1]][,2]) * 999),
collapse = "\n"))
.cat("\n//\n\n")
.cat("\n//\n")
}
}

Expand Down

0 comments on commit c86c35d

Please sign in to comment.