Project

General

Profile

Actions

Bug #19900

closed

rudderc doesn't support multiline text

Added by Nicolas CHARLES about 3 years ago. Updated about 3 years ago.

Status:
Released
Priority:
N/A
Category:
rudderc
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

I tried to set up a file line present with multiline

\\"x
\'
\\'
\

policy generation failed, as generated code is

# generated by rudderc
# @name technique
# @version 1.0
# @description 

bundle agent technique____x {

  vars:
    "resources_dir"        string => "${this.promise_dirname}/resources";
    "args"                  slist => {};
    "report_param"         string => join("_", args);
    "full_class_prefix"    string => canonify("technique____x_${report_param}");
    "class_prefix"         string => string_head("${full_class_prefix}", "1000");

  methods:
    # File lines present:
    # 
    #   file("""/tmp/file\\"x""").lines_present("""\\"x
\'
\\'
\""") as file_lines_present__tmp_file___x
    # 
    "01d82ff7-f479-4451-a545-e5150efb427b" usebundle => _method_reporting_context("File lines present", "/tmp/file\\\\\"x");
    "01d82ff7-f479-4451-a545-e5150efb427b" usebundle => file_lines_present("/tmp/file\\\\\"x", "\\\\\"x
\\'
\\\\'
\\");

}

Comment is not multilining :/

Actions

Also available in: Atom PDF