[
https://issues.apache.org/jira/browse/DAFFODIL-2333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17095810#comment-17095810
]
Mike Beckerle commented on DAFFODIL-2333:
-----------------------------------------
Note: This shoudl really be two separate layers. One for comment syntax
removal. The other for line folding.
A generic layer that takes a regex and a replacement could implement both this
comment stripping and the line unfolding as two different pre-processing
passes. (Regex with start-of-line anchor would be needed.)
> line folding layer that accepts LF or CRLF line endings and strips comments
> ---------------------------------------------------------------------------
>
> Key: DAFFODIL-2333
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2333
> Project: Daffodil
> Issue Type: New Feature
> Components: Back End
> Affects Versions: 2.6.0
> Reporter: Mike Beckerle
> Priority: Major
> Fix For: 3.0.0
>
>
> A user (depth.painter 'at' mail.com) requested line folding that removes a
> variant of line-folding similar to already supported, but also strips out a
> comment syntax.
> bq. ....Line folding and line comments.
> bq.
> bq. For line folding the layer transforms specifically the lineFolded_*
> family looks promising however the two that are implemented don't match my
> file specification because crlf%x20; and lf%x20; can both be used to fold
> lines.
> bq.
> bq. As for line comments I currently have some Comment elements peppered
> throughout my schema however I'm sure I missed some. And that strategy isn't
> even up to spec because comments are supposed to be ignored during parsing.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)