]> Repositorios git - scryer-prolog.git/commitdiff
No trimming of the buffer
authornotoria <[email protected]>
Sat, 25 Apr 2020 16:20:20 +0000 (18:20 +0200)
committernotoria <[email protected]>
Sat, 25 Apr 2020 16:20:20 +0000 (18:20 +0200)
src/prolog/machine/system_calls.rs

index eec6fc89b7250874bda88a1b0006550335b3f6ac..4c0fed6b683454aa18dcfa7e24d49e249d10a61e 100644 (file)
@@ -1583,7 +1583,7 @@ impl MachineState {
                         return Ok(());
                     }
                 };
-                let chars = buffer.trim().chars().map(|c| Addr::Char(c));
+                let chars = buffer.chars().map(|c| Addr::Char(c));
                 let char_list = Addr::HeapCell(self.heap.to_list(chars));
 
                 self.unify(char_list, a2);