From fe10e6854f6cf2b63b092af2d0a2eceab2d51f35 Mon Sep 17 00:00:00 2001 From: prssanna Date: Tue, 15 Dec 2020 18:57:13 +0530 Subject: [PATCH] fix: set default value for no_of_cols --- frappe/templates/print_formats/standard_macros.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/templates/print_formats/standard_macros.html b/frappe/templates/print_formats/standard_macros.html index 19c8dafc9e..cf55bf4b13 100644 --- a/frappe/templates/print_formats/standard_macros.html +++ b/frappe/templates/print_formats/standard_macros.html @@ -1,4 +1,4 @@ -{% macro render_field(df, doc, no_of_cols) -%} +{% macro render_field(df, doc, no_of_cols=2) -%} {%- if df.fieldtype=="Table" -%} {{ render_table(df, doc) }} {%- elif df.fieldtype=="HTML" and df.options -%}