Commit 268cefcb by Maarten L. Hekkelman

formal charge format in PDB fix

parent f4e860bc
......@@ -3595,7 +3595,7 @@ std::tuple<int,int> WriteCoordinatesForModel(std::ostream& pdbFile, Datablock& d
std::string sCharge;
if (charge != 0)
sCharge = (charge > 0 ? '+' : '-') + std::to_string(charge);
sCharge = std::to_string(charge) + (charge > 0 ? '+' : '-');
pdbFile << (kATOM
% group
......
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