diff --git a/matlab/reporting/@section/write.m b/matlab/reporting/@section/write.m
index 6a1f68dfca941fd4e9f353eee2574611af91ada8..b80a5fd0cb6754391fcf4f5cd2955e18364cf16b 100644
--- a/matlab/reporting/@section/write.m
+++ b/matlab/reporting/@section/write.m
@@ -33,7 +33,7 @@ assert(fid ~= -1);
 
 fprintf(fid, '%% Section Object\n');
 if ~isempty(o.height)
-    fprintf(fid, '\\setlength\\sectionheight{%s}\n', o.height);
+    fprintf(fid, '\\setlength\\sectionheight{%s}%%\n', o.height);
 end
 fprintf(fid, '\\maxsizebox{\\textwidth}{');
 if isempty(o.height)