}
{
fun = $0
- # was: gsub ( /\\/, "\\\\", fun)
- q = "\\\\"
- if (PROCINFO["version"] ~ /^4/)
- gsub ( q, q q, fun)
- else
- gsub ( q, q, fun)
-
+ gsub ( "\\\\", "&&", fun)
gsub ( /"/, "\\\"", fun)
gsub ( /\$/, "\\044", fun)
gsub ( /.*/, "\"&\\n\",", fun)
}
x = $0
- gsub (/\\/, "\\\\", x)
+ gsub ( "\\\\", "&&", x)
gsub (/\"/, "\\\"", x)
print "\"" x "\\n\""
}
}
x = $0
- gsub (/\\/, "\\\\", x)
+ gsub ( "\\\\", "&&", x)
gsub (/\"/, "\\\"", x)
print "\"" x "\\n\""
}
print " ses := string_output ();"
}
str = $0
- gsub ( /\\/, "\\\\", str)
+ gsub ( "\\\\", "&&", str)
gsub ( /'/, "\\'", str)
#
# does escape the symbols
fun = $0
- q = "\\\\"
- if (PROCINFO["version"] ~ /^4/)
- gsub ( q, q q, fun)
- else
- gsub ( q, q, fun)
-
- #WAS: gsub ( /\\/, "\\\\", fun)
+ gsub ("\\\\", "&&", fun)
# remove whitespace except when there is just a semicolon
if ((in_xsl_mode == 0) && (in_xsd_mode == 0))