[ 
https://issues.apache.org/jira/browse/TS-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13733162#comment-13733162
 ] 

ASF subversion and git services commented on TS-1823:
-----------------------------------------------------

Commit 1ddfc042fc8df6a92dc3c74718451db0a7ec3f93 in branch refs/heads/master 
from [~jhriggs]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=1ddfc04 ]

TS-1823: add line continuation to remap.config

Add line continuation to remap.config using a backslash at the end
of a line as the continuation character.

The handling for continuation was made in tokLine() by adding an
optional third char parameter (`cont') which is the continuation
character. This should make it usable in other contexts outside of
remap.config also, for example other config file parsers.

This implementation is not very intelligent, as it only checks for the
backslash immediately preceding the newline and does not handle any
whitespace. The backslash and newline are converted into spaces, and
the next line is appended.

Example:

.definefilter foo \
  @action=allow \
  @src_ip=127.0.0.1

is read and parsed in UrlRewrite::BuildTable() as:

.definefilter foo     @action=allow     @src_ip=127.0.0.1

                
> config file line continuation support
> -------------------------------------
>
>                 Key: TS-1823
>                 URL: https://issues.apache.org/jira/browse/TS-1823
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Configuration
>            Reporter: James Peach
>            Assignee: James Peach
>             Fix For: 3.3.6
>
>         Attachments: 
> 0001-Add-line-continuation-to-remap.config-using-a-backsl.patch
>
>
> It looks like remap.config does not support line continuation. We should add 
> generic line continuation support so that all config files get it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to