Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a newline without adding a new paragraph

Tags:

emacs

org-mode

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
like image 355
James.Y Avatar asked Oct 30 '12 15:10

James.Y


People also ask

How do you go to next line without pressing Enter?

To insert a line break ''without'' starting a new paragraph, you can use Shift+Enter.

Is a new line a new paragraph?

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.

How do you insert a line break?

Press ALT+ENTER to insert the line break.


1 Answers

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>
like image 88
N.N. Avatar answered Sep 23 '22 02:09

N.N.