Ticket #14 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

PHPDocumentorTask adds single-quotes in title

Reported by: anonymous Owned by: mrook
Priority: minor Milestone: 2.2.0
Component: Version: 2.2.0RC1
Keywords: Cc:

Description

If I enter title="DOC-TITLE" in the build file, the generated doc will have 'DOC-TITLE' as the title (with the quotes).

It looks like this is due to the function PHPDocumentorTask::constructArguments(), this line:

$arguments.= "-ti '" . $this->title . "' ";

I'm on a windows machine so the single-quotes can't be used to put a string for an argument. This error also prevents me from putting a space in the title. This seems to fix the problem:

$arguments.= '-ti "' . $this->title . '" ';

Attachments

Change History

Changed 4 years ago by mrook

  • owner set to mrook
  • status changed from new to assigned

Accepting this ticket.

Changed 4 years ago by mrook

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in r46.

Add/Change #14 (PHPDocumentorTask adds single-quotes in title)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.