Skip to content
Open
Changes from all 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
24 changes: 23 additions & 1 deletion ncl/nxscharactersblock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2180,7 +2180,29 @@ void NxsCharactersBlock::HandleFormat(
else if (wIt->Equals("TRANSPOSE"))
transposing = true;
else if (wIt->Equals("INTERLEAVE"))
interleaving = true;
{
// check if followed by =yes/no (strictly, not Nexus-compliant)
wIt++;
if (wIt->Equals("="))
{
wIt++;
if (wIt->Equals("YES"))
{
interleaving = true;
}
else if (wIt->Equals("NO"))
{
interleaving = false;
}
else
throw NxsException("Cannot parse interleave command", *wIt); // probably want a more informative error
}
else
{
wIt--;
interleaving = true;
}
}
else if (wIt->Equals("ITEMS"))
{
DemandEquals(wIt, tvEnd, "after keyword ITEMS");
Expand Down