fix detection of changes when the init content is empty
This commit is contained in:
parent
a84b3ea5a3
commit
cc2f4f33b7
1 changed files with 4 additions and 1 deletions
|
|
@ -66,7 +66,10 @@ class WebContentEdit(ReplApplication):
|
|||
data = content.content
|
||||
if isinstance(data, unicode):
|
||||
data = data.encode('utf-8')
|
||||
f.write(data or '')
|
||||
elif data is None:
|
||||
data = ''
|
||||
f.write(data)
|
||||
content.content = data
|
||||
paths[path] = content
|
||||
|
||||
params = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue