javaproperties: support de l'échappement de : et =

This commit is contained in:
Jephté Clain 2017-06-14 15:51:56 +04:00
parent 1f4362c226
commit 2a6cd4ddec
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,8 @@ function read_property() {
sub(/^[ \t]*/, "")
value = substr(value, 1, length(value) - 1) $0
}
gsub(/\\:/, ":", value)
gsub(/\\=/, "=", value)
print value
found = 0
exit
@ -64,6 +66,8 @@ function write_property() {
function write_value() {
# XXX attention, le découpage n"est potentiellement pas fait
# correctement si la valeur contient des espaces
gsub(/:/, "\\:", value)
gsub(/=/, "\\=", value)
line = name "=" value
prefix = ""
max_len = 75