Explorar o código

Simplify ERT for TBLFM with sub-total

* testing/lisp/test-org-table.el (test-org-table/sub-total): Simplify
condition in "if".
Michael Brand %!s(int64=12) %!d(string=hai) anos
pai
achega
fb3ecad851
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      testing/lisp/test-org-table.el

+ 1 - 1
testing/lisp/test-org-table.el

@@ -647,7 +647,7 @@ formatter \"%.1f\"."
 |-------+-------+-------|
 "
    1 (concat "#+TBLFM: @>$2 = vsum(@II..@>>) ::"
-	     "$3 = if(vlen(@-I$2..@0$2) == vlen(@-I$2..@+I$2), "
+	     "$3 = if(vlen(@0..@+I) == 1, "
 	     "vsum(@-I$2..@+I$2) +.0, string(\"\")); EN f-1 :: "
 	     "@>$3 = string(\"\")")))