A simple org-mode document, a *
header line, a - Q:
line with an intended A:
line.
After exporting to html, why are Q: and A: in the same line?
* Header line
- Q: questions
A: answers
To insert a line break ''without'' starting a new paragraph, you can use Shift+Enter.
When a line break is inserted the cursor moves down a single line, which is different from the paragraph which ends the paragraph and starts a new one. When you hold Shift and press Enter a line break tag is inserted ( <br /> ) and the text entered after the line break will appear on the next line down.
Press ALT+ENTER to insert the line break.
According to the manual:
Paragraphs are separated by at least one empty line. If you need to enforce a line break within a paragraph, use ‘\’ at the end of a line.
Hence you should write
* Header line
- Q: questions\\
A: answers
which exports, as intended, to
<ul>
<li>Q: questions<br/>
A: answers
</li>
</ul>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With