equal
deleted
inserted
replaced
94 (case try XML.tree_of_string (XML.element "message" [] [raw_txt]) of |
94 (case try XML.tree_of_string (XML.element "message" [] [raw_txt]) of |
95 NONE => (raw_txt, Position.none) |
95 NONE => (raw_txt, Position.none) |
96 | SOME xml => (XML.plain_content xml, the_default Position.none (get_pos xml))) |
96 | SOME xml => (XML.plain_content xml, the_default Position.none (get_pos xml))) |
97 |>> translate_string (fn c => if c = STX then DEL else c); |
97 |>> translate_string (fn c => if c = STX then DEL else c); |
98 val props = |
98 val props = |
99 (case Position.properties_of (Position.thread_data ()) of |
99 Position.properties_of (Position.thread_data ()) |
100 [] => Position.properties_of pos |
100 |> Position.default_properties pos; |
101 | props => props); |
|
102 in Output.writeln_default (special ch ^ print_props props ^ txt ^ special_end) end; |
101 in Output.writeln_default (special ch ^ print_props props ^ txt ^ special_end) end; |
103 |
102 |
104 fun init_message () = |
103 fun init_message () = |
105 let |
104 let |
106 val pid = ("pid", string_of_pid (Posix.ProcEnv.getpid ())); |
105 val pid = ("pid", string_of_pid (Posix.ProcEnv.getpid ())); |