From e9f03c89a68c32197c4f712f721b66feef474ee6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bennet=20Ble=C3=9Fmann?= Date: Fri, 4 Oct 2024 19:25:34 +0200 Subject: [PATCH] fix issue #2588 --- src/machine/system_calls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machine/system_calls.rs b/src/machine/system_calls.rs index a092633e..6dad3152 100644 --- a/src/machine/system_calls.rs +++ b/src/machine/system_calls.rs @@ -7758,7 +7758,7 @@ impl Machine { .value_to_str_like(self.machine_st.registers[1]) { let document = scraper::Html::parse_document(&string.as_str()); - let result = self.html_node_to_term(document.tree.root()); + let result = self.html_node_to_term(document.tree.root().first_child().unwrap()); unify!(self.machine_st, self.machine_st.registers[2], result); } else { -- 2.54.0