src/Pure/Isar/isar_output.ML
changeset 11011 14b78c0c9f05
parent 10739 ec19f5902ef5
child 11240 e9d5dc758f5e
--- a/src/Pure/Isar/isar_output.ML	Wed Jan 31 22:14:53 2001 +0100
+++ b/src/Pure/Isar/isar_output.ML	Wed Jan 31 22:15:53 2001 +0100
@@ -279,8 +279,10 @@
     Pretty.str_of prt
     |> enclose "\\isa{" "}";
 
+fun tweak_line s =
+  if ! display then s else Symbol.strip_blanks s;
 
-val pretty_text = Pretty.chunks o map Pretty.str o Library.split_lines;
+val pretty_text = Pretty.chunks o map Pretty.str o map tweak_line o Library.split_lines;
 
 val pretty_source =
   pretty_text o space_implode " " o map Args.string_of o #2 o #1 o Args.dest_src;