PmWiki: LineContinuation

About line continuation

This page illustrates how you can continue lines using \ and
\\. The instructions on TextFormattingRules say:

Let us now give a few examples (the text in the left column shows the markup, and the right column shows how it is rendered).

Example of using \

In this example we pretend that you are writing a list item with a lot of text. Here's what you will get if you don't use line continuation:

 * This list item has so
much text that you wrote it
on several lines
  • This list item has so
much text that you wrote it
on several lines

This is how it should be done:

 * This list item has so \
much text that you wrote it \
on several lines
  • This list item has so much text that you wrote it on several lines

Example of using \\

In this example you want to have a newline without leaving the list item. Here's what you will get if you use \:


 * The next sentence should \
be on a line of its own. \
On a line of its own.
  • The next sentence should be on a line of its own. On a line of its own.

This is how it should be done:

 * The next sentence should \
be on a line of its own. \\
On a line of its own.
  • The next sentence should be on a line of its own.
    On a line of its own.

本頁更新於 2004 年 05 月 23 日,05:54 PM