add support for wrapped lines v_0 tip
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sat, 18 Feb 2023 02:34:56 +0100
branchv_0
changeset 17 06c8926debe0
parent 16 d846f539eeea
add support for wrapped lines
src/RecfileCommand.h
--- a/src/RecfileCommand.h	Sat Dec 04 21:14:50 2021 +0100
+++ b/src/RecfileCommand.h	Sat Feb 18 02:34:56 2023 +0100
@@ -235,6 +235,7 @@
 						break;
 					case ParserState::VALUE:
 						if (ch == '\n') state = ParserState::VALUE_CONTINUATION;
+						else if (ch == '\\' && input.peek() == '\n') input.get();
 						else value << ch;
 						break;
 					case ParserState::VALUE_CONTINUATION: