Formatting the element content if preserving of white spaces
Posted: Wed Apr 29, 2009 5:34 pm
Hello Everyone,
if there are used literal elements in my DocBook document I would expect their content untouched if Format and Indent button is pressed. If content is too long and contains spaces, it is wrapped. As in the next processing of literal element content the white spaces are preserved, there are unwanted spaces in the output.
Can be such behaviour changed somehow or I must avoid using Format button?
The following change of default docbook.css style todoesn't automatically wrap literal content if it is edited in visual mode (so it could be default docbook setting I think), but there is no influence on the result of Format and Indent button.
Is there any solution. Do I something wrong?
Thanks in advance.
Jan
if there are used literal elements in my DocBook document I would expect their content untouched if Format and Indent button is pressed. If content is too long and contains spaces, it is wrapped. As in the next processing of literal element content the white spaces are preserved, there are unwanted spaces in the output.
Can be such behaviour changed somehow or I must avoid using Format button?
The following change of default docbook.css style to
Code: Select all
literal {
font-family:monospace;
white-space:pre; // this line was added
}
Is there any solution. Do I something wrong?
Thanks in advance.
Jan