--- a/trunk/Src/UREMLDataIO.pas
+++ b/trunk/Src/UREMLDataIO.pas
@@ -224,7 +224,7 @@
   // Delphi
   SysUtils,
   // Project
-  UExceptions, UStrUtils;
+  UConsts, UExceptions, UStrUtils;
 
 
 type
@@ -653,8 +653,12 @@
   TREMLTags.LookupParamName(TagElem.Kind, ParamName);
   case TagElem.State of
     fsClose:
+    begin
       // closing tag
       Result := Format('</%s>', [TagName]);
+      if TagElem.DisplayStyle = dsBlock then
+        Result := Result + EOL;
+    end;
     fsOpen:
     begin
       // opening tag: may have a parameter