Index: trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/formatter/EbnfHtmlFormatterVisitor.java
===================================================================
--- trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/formatter/EbnfHtmlFormatterVisitor.java	(revision 39)
+++ trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/formatter/EbnfHtmlFormatterVisitor.java	(revision 40)
@@ -19,4 +19,5 @@
 	private ArrayList<MetaTextEntry> metaTexts = new ArrayList<MetaTextEntry>();
 	private ArrayList<MetaTextEntry> transformedTexts = new ArrayList<MetaTextEntry>();
+	private int lastMetaTextBlock = 0;
 	
 	public EbnfHtmlFormatterVisitor(EObject rootNode, FormatterConfig config) {
@@ -110,5 +111,5 @@
 				}
 			} else {
-				if ((currentMetaText != null) && (bufferPositionFormattedTextNoWhitespaces == currentMetaText.getOffset())) {
+				if (lastMetaTextBlock == 0 && (currentMetaText != null) && (bufferPositionFormattedTextNoWhitespaces == currentMetaText.getOffset())) {
 					result.append(currentMetaText.getText());
 					metaTexts.remove(currentMetaText);
@@ -117,4 +118,5 @@
 					else
 						currentMetaText = null;
+					lastMetaTextBlock = 1;
 				}
 
@@ -137,14 +139,13 @@
 				}
 
-//				if ((currentMetaText != null) && (bufferPositionFormattedTextNoWhitespaces == currentMetaText.getOffset())) {
-//					result.append(currentMetaText.getText());
-//					metaTexts.remove(currentMetaText);
-//					if (metaTexts.iterator().hasNext())
-//						currentMetaText = metaTexts.iterator().next();
-//					else
-//						currentMetaText = null;
-//				}
-
-//				}
+				if (lastMetaTextBlock == 1 && (currentMetaText != null) && (bufferPositionFormattedTextNoWhitespaces == currentMetaText.getOffset())) {
+					result.append(currentMetaText.getText());
+					metaTexts.remove(currentMetaText);
+					if (metaTexts.iterator().hasNext())
+						currentMetaText = metaTexts.iterator().next();
+					else
+						currentMetaText = null;
+					lastMetaTextBlock = 0;
+				}
 			}
 		}
