File tree Expand file tree Collapse file tree
biojava-core/src/main/java/org/biojava/nbio/core/sequence/io Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -203,9 +203,10 @@ private void parseFeatureTag(List<String[]> section) {
203203 Boolean needsQuotes = false ;
204204 key = key .substring (1 ); // strip leading slash
205205 val = val .replaceAll ("\\ s*[\\ n\\ r]+\\ s*" , " " ).trim ();
206+
206207 if (val .endsWith ("\" " )) {
207208 val = val .substring (1 , val .length () - 1 ); // strip quotes
208- needsQuotes = true ; // as the value has quotes then set that it needs quotes when written back out
209+ needsQuotes = true ; // as the value has quotes then set that it needs quotes when written back out
209210 }
210211 // parameter on old feature
211212 if (key .equals ("db_xref" )) {
@@ -214,6 +215,7 @@ private void parseFeatureTag(List<String[]> section) {
214215 String dbname = m .group (1 );
215216 String raccession = m .group (2 );
216217 DBReferenceInfo xref = new DBReferenceInfo (dbname , raccession );
218+ xref .setNeedsQuotes (needsQuotes );
217219 gbFeature .addQualifier (key , xref );
218220
219221 ArrayList <DBReferenceInfo > listDBEntry = new ArrayList <>();
You can’t perform that action at this time.
0 commit comments