Skip to content
Snippets Groups Projects
Commit b26f5d06 authored by Glenn Proctor's avatar Glenn Proctor
Browse files

Stip leading & trailing whitespace from description.

parent 2864d012
No related branches found
No related tags found
No related merge requests found
......@@ -183,9 +183,13 @@ sub create_xrefs {
my $description;
foreach my $line (@all_lines) {
my ($description_only) = $line =~ /^DE\s+(.+)/;
$description .= " " . $description_only if ($description_only);
$description .= $description_only if ($description_only);
$description .= " ";
}
$description =~ s/^\s*//g;
$description =~ s/\s*$//g;
$xref->{DESCRIPTION} = $description;
# extract sequence
......
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