Skip to content
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

Multi-Line Text value in __Long description causes generation of .cs files with wrong syntax #50

Open
Antonytm opened this issue Jun 2, 2022 · 1 comment

Comments

@Antonytm
Copy link

Antonytm commented Jun 2, 2022

Presence of Multi-Line

    Hint: __Long description
    Value: |
      Line 1
      Line 2
      Line 3

__Long description in serialization file

....
ID: "049c2604-7311-45a2-b05d-590dce623b89"
Parent: "049c2604-7311-45a2-b05d-590dce623b88"
Template: "049c2604-7311-45a2-b05d-590dce623b87"
Path: /sitecore/templates/Feature/MyFeature/MyTemplate
Languages:
- Language: en
  Fields:
  - ID: "049c2604-7311-45a2-b05d-590dce623b86"
    Hint: Title
    Value: Field that require long desciption
  - ID: "049c2604-7311-45a2-b05d-590dce623b85"
    Hint: __Long description
    Value: |
      Line 1
      Line 2
      Line 3
 ...     

causes the generation of the .cs file that could not be compiled due to syntax errors.

/// <summary>Line 1
Line 2
Line 3</summary>
[SitecoreField(FieldName = ...)]
@Antonytm
Copy link
Author

Antonytm commented Jun 2, 2022

Fix provided in this PR: #51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant