src/Pure/Thy/document_antiquotation.ML
changeset 67474 90def2b06305
parent 67472 7ed8d4cdfb13
child 67571 f858fe5531ac
equal deleted inserted replaced
67473:aad088768872 67474:90def2b06305
    14   val thy_output_break: bool Config.T
    14   val thy_output_break: bool Config.T
    15   val thy_output_modes: string Config.T
    15   val thy_output_modes: string Config.T
    16   val trim_blanks: Proof.context -> string -> string
    16   val trim_blanks: Proof.context -> string -> string
    17   val trim_lines: Proof.context -> string -> string
    17   val trim_lines: Proof.context -> string -> string
    18   val indent_lines: Proof.context -> string -> string
    18   val indent_lines: Proof.context -> string -> string
       
    19   val prepare_lines: Proof.context -> string -> string
    19   val quote: Proof.context -> Pretty.T -> Pretty.T
    20   val quote: Proof.context -> Pretty.T -> Pretty.T
    20   val indent: Proof.context -> Pretty.T -> Pretty.T
    21   val indent: Proof.context -> Pretty.T -> Pretty.T
    21   val format: Proof.context -> Pretty.T -> string
    22   val format: Proof.context -> Pretty.T -> string
    22   val output: Proof.context -> Pretty.T -> Output.output
    23   val output: Proof.context -> Pretty.T -> Output.output
    23   val print_antiquotations: bool -> Proof.context -> unit
    24   val print_antiquotations: bool -> Proof.context -> unit
    57 
    58 
    58 fun indent_lines ctxt =
    59 fun indent_lines ctxt =
    59   if Config.get ctxt thy_output_display then
    60   if Config.get ctxt thy_output_display then
    60     prefix_lines (Symbol.spaces (Config.get ctxt thy_output_indent))
    61     prefix_lines (Symbol.spaces (Config.get ctxt thy_output_indent))
    61   else I;
    62   else I;
       
    63 
       
    64 fun prepare_lines ctxt = trim_lines ctxt #> indent_lines ctxt;
    62 
    65 
    63 
    66 
    64 (* output *)
    67 (* output *)
    65 
    68 
    66 fun quote ctxt =
    69 fun quote ctxt =