-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line breaks in pattern parameters #473
Comments
Having the same issue. |
I'd start by playing with the regular expressions in each engine to recognize the new lines, if needed. Example: https://github.com/pattern-lab/patternengine-node-handlebars/blob/master/lib/engine_handlebars.js#L28-L30 they are used here: https://github.com/pattern-lab/patternlab-node/blob/master/core/lib/object_factory.js#L133 See what happens then. If things are still not working as expected after that, a second step may be needed on the parse side |
This would be a great improvement. I've also found that using |
this is likely a regex problem, and is a separate issue. thanks for the report! |
@bmuenzenmeyer Do you want me to fix this? |
@raphaelokon if you are referring to @ajilderda's comment, sure thing! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is this a related topic to mustache which is using a custom pattern reference? Pattern <p>{{text}}</p>
<p>{{text2}}</p> Reference
Result <p>Hello</p>
<p>Hello2</p> With handlebars, it is working right now. I don't know when the support for mustache will be dropped, so maybe still relevant. |
this is a won't fix in the same vein as #145 - if the template language doesnt support it, we wont be doing it. |
I am using Pattern Lab Node
v2.5.1
onMac
, with Nodev5.3.0
, using a customGrunt
Edition.Coming from Pattern Lab PHP I often format more complex pattern parameters with line breaks for better clarity. This seems to break the pattern include and nothing gets included at all:
The text was updated successfully, but these errors were encountered: