From a122fa541135347478a54c19cfd441a05e4d6c75 Mon Sep 17 00:00:00 2001 From: Laurent Pugin Date: Mon, 27 May 2024 17:03:18 +0200 Subject: [PATCH] Add end of line at the end of PAE data. Closes #3632 --- include/vrv/iopae.h | 1 + src/iopae.cpp | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/include/vrv/iopae.h b/include/vrv/iopae.h index b007c4cb341..9af974e0468 100644 --- a/include/vrv/iopae.h +++ b/include/vrv/iopae.h @@ -102,6 +102,7 @@ class PAEOutput : public Output { */ ///@{ void WriteMdiv(Mdiv *mDiv); + void WriteMdivEnd(Mdiv *mDiv); void WriteScoreDef(ScoreDef *scoreDef); void WriteStaffDef(StaffDef *staffDef); void WriteMeasure(Measure *measure); diff --git a/src/iopae.cpp b/src/iopae.cpp index a45efef5873..44b8e94cb81 100644 --- a/src/iopae.cpp +++ b/src/iopae.cpp @@ -162,7 +162,10 @@ bool PAEOutput::WriteObject(Object *object) bool PAEOutput::WriteObjectEnd(Object *object) { - if (object->Is(MEASURE)) { + if (object->Is(MDIV)) { + this->WriteMdivEnd(vrv_cast(object)); + } + else if (object->Is(MEASURE)) { this->WriteMeasureEnd(vrv_cast(object)); } else if (object->Is(BEAM)) { @@ -182,6 +185,13 @@ void PAEOutput::WriteMdiv(Mdiv *mdiv) m_streamStringOutput << "@data:"; } +void PAEOutput::WriteMdivEnd(Mdiv *mdiv) +{ + assert(mdiv); + + m_streamStringOutput << "\n"; +} + void PAEOutput::WriteScoreDef(ScoreDef *scoreDef) {} void PAEOutput::WriteStaffDef(StaffDef *staffDef)