From fe3a05d8810b24ad52382ff871d1692c8afaa3cc Mon Sep 17 00:00:00 2001 From: Kasper Isager Date: Fri, 19 Feb 2021 16:03:50 +0100 Subject: [PATCH] Only use accumulated text that is not empty ("") --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 046976e..3ad354d 100644 --- a/index.html +++ b/index.html @@ -271,7 +271,7 @@

Computation steps

  • Append the result, with a space, to the accumulated text.
  • -
  • Return the accumulated text.
  • +
  • Return the accumulated text if it is not the empty string ("").
  • @@ -350,7 +350,7 @@

    Computation steps

  • Append the result to the accumulated text.
  • -
  • Return the accumulated text.
  • +
  • Return the accumulated text if it is not the empty string ("").
  • Important: Each node in the subtree is consulted only once. If text has been collected from a descendant, but is referenced by another IDREF in some descendant node, then that second, or subsequent, reference is not followed. This is done to avoid infinite loops.