zotonic-tpl-mode: refactor tag soup indent calculations.
(cherry picked from commit 8c71c4c17be00643aa55407a803e104137c21c65)