javaproperties: support de l'échappement de : et =
This commit is contained in:
parent
1f4362c226
commit
2a6cd4ddec
|
@ -33,6 +33,8 @@ function read_property() {
|
||||||
sub(/^[ \t]*/, "")
|
sub(/^[ \t]*/, "")
|
||||||
value = substr(value, 1, length(value) - 1) $0
|
value = substr(value, 1, length(value) - 1) $0
|
||||||
}
|
}
|
||||||
|
gsub(/\\:/, ":", value)
|
||||||
|
gsub(/\\=/, "=", value)
|
||||||
print value
|
print value
|
||||||
found = 0
|
found = 0
|
||||||
exit
|
exit
|
||||||
|
@ -64,6 +66,8 @@ function write_property() {
|
||||||
function write_value() {
|
function write_value() {
|
||||||
# XXX attention, le découpage n"est potentiellement pas fait
|
# XXX attention, le découpage n"est potentiellement pas fait
|
||||||
# correctement si la valeur contient des espaces
|
# correctement si la valeur contient des espaces
|
||||||
|
gsub(/:/, "\\:", value)
|
||||||
|
gsub(/=/, "\\=", value)
|
||||||
line = name "=" value
|
line = name "=" value
|
||||||
prefix = ""
|
prefix = ""
|
||||||
max_len = 75
|
max_len = 75
|
||||||
|
|
Loading…
Reference in New Issue