docs: private void endMainBlock() {
          BlockTabRec btr = blockTab[0];
          btr.tPosContentsEnd = templateText.length();
          btr.tPosEnd = templateText.length();
          btr.definitionIsOpen = false;
          currentNestingLevel--;
      }