Changeset 40 in default
- Timestamp:
- 11/04/10 17:47:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/formatter/EbnfHtmlFormatterVisitor.java
r39 r40 19 19 private ArrayList<MetaTextEntry> metaTexts = new ArrayList<MetaTextEntry>(); 20 20 private ArrayList<MetaTextEntry> transformedTexts = new ArrayList<MetaTextEntry>(); 21 private int lastMetaTextBlock = 0; 21 22 22 23 public EbnfHtmlFormatterVisitor(EObject rootNode, FormatterConfig config) { … … 110 111 } 111 112 } else { 112 if ( (currentMetaText != null) && (bufferPositionFormattedTextNoWhitespaces == currentMetaText.getOffset())) {113 if (lastMetaTextBlock == 0 && (currentMetaText != null) && (bufferPositionFormattedTextNoWhitespaces == currentMetaText.getOffset())) { 113 114 result.append(currentMetaText.getText()); 114 115 metaTexts.remove(currentMetaText); … … 117 118 else 118 119 currentMetaText = null; 120 lastMetaTextBlock = 1; 119 121 } 120 122 … … 137 139 } 138 140 139 // if ((currentMetaText != null) && (bufferPositionFormattedTextNoWhitespaces == currentMetaText.getOffset())) { 140 // result.append(currentMetaText.getText()); 141 // metaTexts.remove(currentMetaText); 142 // if (metaTexts.iterator().hasNext()) 143 // currentMetaText = metaTexts.iterator().next(); 144 // else 145 // currentMetaText = null; 146 // } 147 148 // } 141 if (lastMetaTextBlock == 1 && (currentMetaText != null) && (bufferPositionFormattedTextNoWhitespaces == currentMetaText.getOffset())) { 142 result.append(currentMetaText.getText()); 143 metaTexts.remove(currentMetaText); 144 if (metaTexts.iterator().hasNext()) 145 currentMetaText = metaTexts.iterator().next(); 146 else 147 currentMetaText = null; 148 lastMetaTextBlock = 0; 149 } 149 150 } 150 151 }
Note: See TracChangeset
for help on using the changeset viewer.