pharborist icon indicating copy to clipboard operation
pharborist copied to clipboard

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

Open phenaproxima opened this issue 10 years ago • 1 comments

@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...

phenaproxima avatar Feb 03 '15 18:02 phenaproxima

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

grom358 avatar Feb 20 '15 04:02 grom358