Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

DocCommentNode::create() should not call trim() on every line #197

Open
phenaproxima opened this issue Feb 3, 2015 · 1 comment
Open

Comments

@phenaproxima
Copy link
Collaborator

@EclipseGc discovered that DocCommentNode is trimming leading and trailing whitespace from every line in the doc comment, which can sometimes have undesirable results:

/**
     * @var string species
     * The species to which the animal belongs.
     */

     vs

     /**
     * @var string species
     *   The species to which the animal belongs.
     */

Can the call to trim() be removed without breaking anything? Or can this be handled by the formatter? I know that doc comments are a bit iffy...

@grom358
Copy link
Owner

grom358 commented Feb 20, 2015

This still an issue?. Need to add a test.

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

No branches or pull requests

2 participants