HolyDiablo / phpvirtualbox

Automatically exported from code.google.com/p/phpvirtualbox
Other
0 stars 0 forks source link

VM Description doesn't display line breaks #675

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If you have line breaks in the VM description these are not shown in the 
details VM Details box (main page not the dialog).

What steps will reproduce the problem?
1. Create a VM, set a description containing line breaks
2. Select VM from VM list and notice line breaks do not appear in the VM 
description in the right hand details box.

What is the expected output? What do you see instead?
To see the line breaks as entered into the description text area in the VM 
settings dialog.

What version of phpVirtualBox, VirtualBox, and PHP are you using? On what
operating system?
4.2.4 + SVN trunk

Please provide any additional information below.
Suggested fix to add the following to layout.css:
#vboxTabVMDetails .vboxVMDetailsBoxdescription { white-space: pre; }

Original issue reported on code.google.com by mc...@mcpuk.net on 17 Mar 2013 at 12:43

GoogleCodeExporter commented 8 years ago
in css/layout.css line 

(around line 929) change
table.vboxDetailsTable td.vboxDetailDescriptionCell { padding-left: 20px; }

to
table.vboxDetailsTable td.vboxDetailDescriptionCell { padding-left: 20px; 
white-space: pre; }

Works very well on modern browsers

Original comment by salasia...@gmail.com on 1 May 2013 at 9:45

Attachments:

GoogleCodeExporter commented 8 years ago
I would use

table.vboxDetailsTable td.vboxDetailDescriptionCell { padding-left: 20px; 
white-space: pre-wrap; }

so that long lines cannot destroy the layout.

Original comment by 1rasdr...@gmail.com on 3 May 2013 at 6:59

GoogleCodeExporter commented 8 years ago
Added to code and will appear in the next version

Original comment by imooreya...@gmail.com on 11 Jul 2013 at 4:28