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]*/, "")
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue