diff --git a/converter/lens_converter.js b/converter/lens_converter.js index faa80a5..7d43955 100644 --- a/converter/lens_converter.js +++ b/converter/lens_converter.js @@ -102,7 +102,7 @@ NlmToLensConverter.Prototype = function() { if (givenNamesEl) names.push(givenNamesEl.textContent); if (surnameEl) names.push(surnameEl.textContent); - if (suffix) return [names.join(" "), suffix.textContent].join(", "); + if (suffix && !(suffix.textContent.trim() === "")) return [names.join(" "), suffix.textContent].join(", "); return names.join(" "); };