Commit 22077d4d by Eric Coissac

define local variables as local

parent 6d1133de
......@@ -37,13 +37,16 @@ function XML_header() {
function XML_push() {
local i=0
local k
local l
local tag=$1
shift
local attribs=( $(echo "$*") )
__LECABASH__XML_pad__ $(stacksize __LECABASH__markup__)
echo -n "<${tag}"
n=${#attribs[@]}
local n=${#attribs[@]}
((n/=2))
if (( n > 0 )) ; then
......@@ -81,6 +84,9 @@ function XML_tag_data() {
function XML_tag_attr_data() {
local i=0
local k
local l
local tag=$1
shift
local attribs=( $(echo "$*") )
......@@ -89,7 +95,7 @@ function XML_tag_attr_data() {
echo -n "<${tag}"
n=${#attribs[@]}
local n=${#attribs[@]}
((n/=2))
if (( n > 0 )) ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment