Changeset 1447


Ignore:
Timestamp:
May 11, 2012, 9:09:05 PM (6 years ago)
Author:
joerg
Message:

fix in the unfolding of @string constants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/jlatexeditor/bib/BibAssistant.java

    r1446 r1447  
    283283      if(value.startsWith("\"") || value.startsWith("{")) {
    284284        builder.append(value.substring(1,value.length()-1));
     285      } else
     286      if(Character.isDigit(value.charAt(0))) {
     287        builder.append(value);
    285288      } else {
    286         unfold(BibSyntaxHighlighting.stringMap.get(value.toLowerCase()), builder, depth-1);
     289        String[] nvalues = BibSyntaxHighlighting.stringMap.get(value.toLowerCase());
     290        if(nvalues != null) {
     291          unfold(nvalues, builder, depth-1);
     292        } else {
     293          builder.append(value);
     294        }
    287295      }
    288296    }
Note: See TracChangeset for help on using the changeset viewer.