Ticket #14 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

PHPDocumentorTask adds single-quotes in title

Reported by: anonymous Assigned to: 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

03/13/06 13:41:12 changed by mrook

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

Accepting this ticket.

03/13/06 13:45:05 changed by mrook

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

Fixed in r46.


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




Action