Skip to content

Commit

Permalink
Add end of line at the end of PAE data. Closes #3632
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed May 27, 2024
1 parent dc4c8c2 commit a122fa5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/vrv/iopae.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
12 changes: 11 additions & 1 deletion src/iopae.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Mdiv *>(object));
}
else if (object->Is(MEASURE)) {
this->WriteMeasureEnd(vrv_cast<Measure *>(object));
}
else if (object->Is(BEAM)) {
Expand All @@ -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)
Expand Down

0 comments on commit a122fa5

Please sign in to comment.