Skip to content

Indention in the fields's comments is not preserved in the generated document #188

Description

@luwangVMW

For example, the comment in the field is like the following


	// Policy defines user-defined RBAC policies and role definitions in CSV format.
	//  Example:
	//
	//	policy: |
	//	  p, role:devops, applications, *, */*, allow
	//	  p, role:devops, clusters, get, *, allow
	//	  g, Alice, role:devops
	//	  g, Bob, role:admin
	//
	Policy string `json:"policy,omitempty"`

but in the generated document, the indentions are all missing, the result is like

Policy defines user-defined RBAC policies and role definitions in CSV format.

Example:

policy: |
p, role:devops, applications, , */, allow
p, role:devops, clusters, get, *, allow
g, Alice, role:devops
g, Bob, role:admin

Is it possible to preserve the indention? Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions