This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      The stringRegex field in ContentBuilder.Tokenizer disallows line terminators in content token arguments (see line #141 in ContentBuilder.java):

      // Sequence of (1) not \ " CR LF and (2) \ followed by non line terminator
      
      private static final String stringRegex = "\"([^\\\\\"\\r\\n]|(\\\\.))*\"";
      

      I propose allowing escaped line terminators, in the tradition of using backslashes as line continuation characters in various scripting languages, including Bash and Python:

      // Sequence of (1) not \ " CR LF and (2) \ followed by any non-CR/LF character or (CR)LF
      private static final String stringRegex = "\"([^\\\\\"\\r\\n]|(\\\\(?:.|\r?\n)))*\"";
      

            Assignee:
            Alex Earl
            Reporter:
            Steve Rowe
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: