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

Document tag for attributes with multi-line descriptions are not indented consistently #293

Open
filcole opened this issue Jun 12, 2021 · 0 comments

Comments

@filcole
Copy link
Contributor

filcole commented Jun 12, 2021

Tool and Version
EarlyBoundGenerator V 1.2021.4.19

Description
If a column (aka field) description contains line breaks or carriage returns the <summary> document tag generated by the earlybound generator for the attribute is not indented consistently.

To Reproduce
Steps to reproduce the behaviour:

  1. Create a new table in Dataverse
  2. Alter primary attribute (e.g. pgc_name) to contain a description with multiple lines
  3. Use XrmToolbox to connect to the environment and generate earlybound classes for the table.

image

Expected behaviour
Block indented consistently, vertically aligned with the method, as below:

		/// <summary>
		/// Line1.
		/// Line2.
		///    Line3.
		/// END
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pgc_name")]
		public string pgc_Name

Actual behaviour
Indentation after the first line is missing.

		/// <summary>
		/// Line1.
///Line2.
///   Line3.
///END
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pgc_name")]
		public string pgc_Name

Additional context
Thank you for your dedication to the EBG. Very minor issue, but I thought I'd report it nonetheless. Note: OOTB CrmSvcUtil.exe (Version 9.1.0.80) generates as follows:

		/// <summary>
		/// Line1.
		///Line2.
		///   Line3.
		///END
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pgc_name")]
		public string pgc_Name
		{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants