Hello,

I have a 3-line <explanation> tag. On the screen the lines appear shifted randomly left or right. Is there a rule as to how to format text inside <explanation>, so that the lines are left- or right justified? Also, what is the correct 'new line' character at the end of a sentence inside <explanation>? Please provide an example, if you can.

Thank you.

asked 08 Apr '13, 19:56

Sasha's gravatar image

Sasha
6222323
accept rate: 0%


The formatting is done automatically based on width available in the page.

You can explicitly specify newlines in the explanation tag by doing:

<explanation>First line Second line Third line </explanation>

link

answered 09 Apr '13, 06:20

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

Hi,

sorry I do not see anything but spaces in your example of <explanation> tag. Where is the 'newline' character?

(09 Apr '13, 17:02) Sasha

The newline character in the XML is interpreted as newline. Alternatively you can use &#xA; as newline character in the XML, especially when specifying explanation as an attribute, not value for XML tag.

(09 Apr '13, 18:21) wojciechka ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×5
×4
×2

Asked: 08 Apr '13, 19:56

Seen: 1,298 times

Last updated: 09 Apr '13, 18:21