From f4f30ed51b9bcd84cf25b601fab0a0064aae7af8 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sun, 2 Apr 2017 00:02:48 +0300 Subject: Fix manifest_parser to provide a proper position for multi-line value --- butl/manifest-parser.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'butl') diff --git a/butl/manifest-parser.cxx b/butl/manifest-parser.cxx index 5028f18..6b50d6b 100644 --- a/butl/manifest-parser.cxx +++ b/butl/manifest-parser.cxx @@ -174,6 +174,14 @@ namespace butl unget (c); } + // Multi-line value starts from the line that follows the name. + // + if (ml) + { + r.value_line = c.line; + r.value_column = c.column; + } + // The nl flag signals that the preceding character was a "special // newline", that is, a newline that was part of the milti-line mode // introductor or an escape sequence. -- cgit v1.1