Adjusts cell paarmeters to match the template

	Parameters
	----------
	target_tab: Integer
	\tTable to be adjusted
	template_tab: Integer, defaults to 0
	\tTemplate table

def cell_attributes_from_template(target_tab, template_tab=0):
	"""Adjusts cell paarmeters to match the template

	Parameters
	----------
	target_tab: Integer
	\tTable to be adjusted
	template_tab: Integer, defaults to 0
	\tTemplate table

	"""

	new_cell_attributes = []
	for attr in S.cell_attributes:
		if attr[1] == template_tab:
			new_attr = (attr[0], target_tab, attr[2])
			new_cell_attributes.append(new_attr)
	S.cell_attributes.extend(new_cell_attributes)

	return "Table {tab} adjusted.".format(tab=target_tab)