bugfix: esc

This commit is contained in:
2025-06-16 13:47:04 +02:00
parent 83beaa3ad5
commit caec86c5a0
7 changed files with 9 additions and 27 deletions

View File

@@ -5,20 +5,18 @@
# Functions
# escape
# Escape string to be used as content in iCalendar files.
#
# @input str: String to escape
# @return: Escaped string
function escape(str)
{
gsub("\\\\", "\\\\", str)
gsub(";", "\\\\;", str)
gsub(",", "\\\\,", str)
gsub("\\\\", "\\\\", str)
gsub(";", "\\;", str)
gsub(",", "\\,", str)
return str
}
# print_fold
# Print property with its content and fold according to the iCalendar
# specification.
#