anchor.diff:    #flow_scalar_ctx{style = Style, output = Output, spaces = Spaces,
     newline = Newline, line = Sc_Line, col = Sc_Col,
     endline = Endline, endcol = Endcol}) ->
  +    Output1 = case Spaces of
  +        "" -> Output;
  +        _  -> Spaces ++ Output
  +    end,
       Token = #yaml_scalar{
         style    = flow,
         substyle = Style,
  -      text     = lists:reverse(Spaces ++ Output),
  +      text     = lists:reverse(Output1),
         line     = Sc_Line,
         column   = Sc_Col
       },
  
positive.code:   when not ?IS_SPACE(C) orelse
    (?IS_SPACE(C) andalso (not Newline orelse Output == "")) ->
      {Col1, Delta1} = ?NEXT_COL(Col, Delta, 1),
      Ctx1 = Ctx#block_scalar_ctx{
        spaces  = "",
        newline = false,
        output  = [C | Spaces ++ Ctx#block_scalar_ctx.output],
        endline = Line,
        endcol  = Col1
      },
  
negative.code:   #flow_scalar_ctx{style = double_quoted,
    spaces = Spaces} = Ctx) ->
      {Col1, Delta1} = ?NEXT_COL(Col, Delta, 1),
      Output1 = case Spaces of
          "" -> Ctx#flow_scalar_ctx.output;
          _  -> Spaces ++ Ctx#flow_scalar_ctx.output
      end,
      Ctx1 = Ctx#flow_scalar_ctx{
        spaces       = "",
        newline      = false,
        output       = Output1
      },
      do_parse_flow_scalar_escaped(Rest, Line, Col1, Delta1, Parser, Ctx1);
  
  