From efe4a48d8fd4d6ad00aecbda9d8b61d777976a59 Mon Sep 17 00:00:00 2001 From: a-Sansara Date: Fri, 24 Aug 2018 21:03:56 +0200 Subject: [PATCH] fix lines count in yaml_root --- src/vala/Pluie/Yaml.Dumper.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vala/Pluie/Yaml.Dumper.vala b/src/vala/Pluie/Yaml.Dumper.vala index 87a55e2..ff37ead 100644 --- a/src/vala/Pluie/Yaml.Dumper.vala +++ b/src/vala/Pluie/Yaml.Dumper.vala @@ -179,11 +179,11 @@ public class Pluie.Yaml.Dumper yaml.append(! SHOW_LINE ? "" : of.c (ECHO.NUM).s ("%03d %s".printf (line++, of.c (ECHO.FILE).s ("|")))); yaml.append("%YAML %s\n".printf (Yaml.YAML_VERSION)); foreach (var entry in node.tag_directives.entries) { - yaml.append(! SHOW_LINE ? "" : of.c (ECHO.NUM).s ("%03d %s".printf (line, of.c (ECHO.FILE).s ("|")))); + yaml.append(! SHOW_LINE ? "" : of.c (ECHO.NUM).s ("%03d %s".printf (line++, of.c (ECHO.FILE).s ("|")))); yaml.append ("%TAG %s %s\n".printf (entry.key, entry.value)); } if (show_doc) { - yaml.append(! SHOW_LINE ? "" : of.c (ECHO.NUM).s ("%03d %s".printf (line, of.c (ECHO.FILE).s ("|")))); + yaml.append(! SHOW_LINE ? "" : of.c (ECHO.NUM).s ("%03d %s".printf (line++, of.c (ECHO.FILE).s ("|")))); yaml.append ("---\n"); } }