forked from docs/doc-exports
escape line breaks
Reviewed-by: Goncharov, Artem <artem.goncharov@t-systems.com> Co-authored-by: gtema <artem.goncharov@gmail.com> Co-committed-by: gtema <artem.goncharov@gmail.com>
This commit is contained in:
parent
d89d5b06ad
commit
cc3820a43d
@ -42,8 +42,12 @@ class OTCComparator:
|
|||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
logging.error("File %s mismatches" % file_name)
|
logging.error("File %s mismatches" % file_name)
|
||||||
logging.debug("Proposed content: %s" % t2.get_text())
|
logging.debug(
|
||||||
logging.debug("Current content: %s" % t1.get_text())
|
"Proposed content: %s" %
|
||||||
|
t2.get_text().encode("unicode_escape").decode("utf-8"))
|
||||||
|
logging.debug(
|
||||||
|
"Current content: %s" %
|
||||||
|
t1.get_text().encode("unicode_escape").decode("utf-8"))
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
logging.info("Content matches")
|
logging.info("Content matches")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user