Commit 5c3c6fec by Maarten L. Hekkelman

strip newlines from compound names read from CCD

parent f97e742d
......@@ -125,6 +125,9 @@ Compound::Compound(cif::Datablock &db)
cif::tie(mID, mName, mType, mFormula, mFormulaWeight, mFormalCharge) =
chemComp.front().get("id", "name", "type", "formula", "formula_weight", "pdbx_formal_charge");
// The name should not contain newline characters since that triggers validation errors later on
ba::replace_all(mName, "\n", "");
auto &chemCompAtom = db["chem_comp_atom"];
for (auto row : chemCompAtom)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment