Bug 838427 - Can't build document when format with space prefix
Summary: Can't build document when format with space prefix
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 3.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: 3.0
Assignee: Jeff Fearn 🐞
QA Contact: Ruediger Landmann
Depends On:
TreeView+ depends on / blocked
Reported: 2012-07-09 05:35 UTC by xuezhi ma
Modified: 2012-10-31 03:11 UTC (History)
3 users (show)

Fixed In Version: 3.0.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-10-31 03:11:14 UTC

Attachments (Terms of Use)

Description xuezhi ma 2012-07-09 05:35:50 UTC
Description of problem:
When I build a document with command:
$ publican build --formats html, html-desktop --langs en-US

html-desktop will not be generated, because before "html-desktop", there is a space.

Version-Release number of selected component (if applicable):
publican 3.0

How reproducible:

Steps to Reproduce:
1. publican build --formats html, html-desktop --langs en-US
Actual results:
Only html was generated.

Expected results:
html-desktop also can be generated.

Additional info:

Comment 1 Jeff Fearn 🐞 2012-07-09 08:10:59 UTC
Space is not a valid prefix.

The real bug here is that publican isn't catching invalid actions when they aren't the first action.

Comment 2 Jeff Fearn 🐞 2012-07-09 08:22:32 UTC
Added code to check number of actions and report an error if there are too many:

$ publican build --formats html, html-desktop --langs en-US
publican only accepts one action you supplied '2': build & html-desktop
 at /usr/bin/publican line 348

To ssh://git.fedorahosted.org/git/publican.git
   c1b69a6..7db69a5  master -> master

Comment 3 Ruediger Landmann 2012-07-11 06:58:09 UTC
Verified in build t207

Note You need to log in before you can comment on or make changes to this bug.