Bug 915674 - Output of <computeroutput> tag not formatted correctly in generated HTML
Summary: Output of <computeroutput> tag not formatted correctly in generated HTML
Keywords:
Status: CLOSED DUPLICATE of bug 752851
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 3.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeff Fearn 🐞
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-26 10:09 UTC by Fintan Bolton
Modified: 2013-02-26 22:46 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-26 10:28:01 UTC
Embargoed:


Attachments (Terms of Use)

Description Fintan Bolton 2013-02-26 10:09:56 UTC
Description of problem:

When the output is generated for a <computeroutput> tag, the text content runs all on a single line (i.e. there are no newlines in the output).


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


How reproducible:

Sample XML source
-----snip-----
      <screen><prompt>FuseMQ:karaf@root></prompt> <userinput>help</userinput>
<computeroutput>COMMANDS
        activemq:browse
        activemq:bstat
        activemq:list
        activemq:purge
        activemq:query
        admin:change-opts
                Changes the Java options of an existing container instance.
        admin:change-rmi-registry-port
                Changes the RMI registry port (used by management layer) of an 
                existing container instance.</computeroutput>
    ...
<prompt>FuseMQ:karaf@root></prompt></screen>
-----snip-----

Here is roughly what the generated HTML looks like

-----snip-----
FuseMQ:karaf@root> help
COMMANDS activemq:browse activemq:bstat activemq:list activemq:purge activemq:query admin:change-opts Changes the Java options of an existing container instance. admin:change-rmi-registry-port Changes the RMI registry port (used by management layer) of an existing container instance.
    ...
FuseMQ:karaf@root>
-----snip-----

And here is what it *ought* to look like

-----snip-----
FuseMQ:karaf@root> help
COMMANDS
        activemq:browse
        activemq:bstat
        activemq:list
        activemq:purge
        activemq:query
        admin:change-opts
                Changes the Java options of an existing container instance.
        admin:change-rmi-registry-port
                Changes the RMI registry port (used by management layer) of an 
                existing container instance.
    ...
FuseMQ:karaf@root>
-----snip-----


Additional info:

Comment 1 Fintan Bolton 2013-02-26 10:28:01 UTC
Didn't immediately spot that this issue is a duplicate of 751851. Having looked up this tag in 'DocBook5: The Definitive Guide', I am inclined to agree with Jeff's analysis. Norman Walsh states quite plainly that it's an inline element, not a verbatim.

*** This bug has been marked as a duplicate of bug 752851 ***

Comment 2 Jeff Fearn 🐞 2013-02-26 22:46:06 UTC
Just a note that for people who disagree with my interpretation, and this is the Internet, you can easily change this behavior in a brand by adding something like the following in your brand's overrides.css & menu.css files.

.screen .computeroutput {
    white-space: pre-wrap;
}


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