From fab6ba6e06cf95c51f628110765d16f232158f2e Mon Sep 17 00:00:00 2001 From: Sergii Khomenko Date: Mon, 15 Apr 2019 22:05:26 +0200 Subject: [PATCH] Comment line breaks only for magic lines --- tensorflow/tools/compatibility/ipynb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tensorflow/tools/compatibility/ipynb.py b/tensorflow/tools/compatibility/ipynb.py index c6275ae0c86..e2c41097f46 100644 --- a/tensorflow/tools/compatibility/ipynb.py +++ b/tensorflow/tools/compatibility/ipynb.py @@ -113,7 +113,8 @@ def _get_code(input_file): # Found a special character, need to "encode" code_line = "###!!!" + code_line - is_line_split = check_line_split(code_line) + # if this cell ends with `\` -> skip the next line + is_line_split = check_line_split(code_line) # Sometimes, people leave \n at the end of cell # in order to migrate only related things, and make the diff