Indent new hardbreak line

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Indent new hardbreak line

question_mark
Dear all,

I am a newbie to Asciidoctor. I set line breaks with the global :hardbreaks: but I do not manage to indent the new line.

I want the following result.

          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Thank you for your answer,
MT
Reply | Threaded
Open this post in threaded view
|

Re: Indent new hardbreak line

Alexander Schwartz
This depends on your output medium.

Do you target HTML as output? Using HTML you have several options:

  1. For quick experiments: inline CSS using the passthrough syntax:
    ++++
    <style>
    .paragraph {text-indent: 4em;}
    </style>
    ++++
  2. For a more extensive: you can use your own stylesheet by adapting an the existing stylesheet or creating a completely new stylesheet.

Regards, Alexander

Alexander Schwartz (alexander.schwartz@gmx.net)
https://www.ahus1.de
Reply | Threaded
Open this post in threaded view
|

Re: Indent new hardbreak line

question_mark

I am targeting PDF and using a YAML file as theme sheet.

On 30/11/2019 19:52, Alexander Schwartz [via Asciidoctor :: Discussion] wrote:
This depends on your output medium.

Do you target HTML as output? Using HTML you have several options:

  1. For quick experiments: inline CSS using the passthrough syntax:
    ++++
    <style>
    .paragraph {text-indent: 4em;}
    </style>
    ++++
  2. For a more extensive: you can use your own stylesheet by adapting an the existing stylesheet or creating a completely new stylesheet.

Regards, Alexander

Alexander Schwartz ([hidden email])
https://www.ahus1.de



If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Indent-new-hardbreak-line-tp7384p7386.html
To unsubscribe from Indent new hardbreak line, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: Indent new hardbreak line

Alexander Schwartz
Looking at the docs about prose, asciidoctor-pdf can only indent paragraphs, not hardbreak lines.

The docs also suggest to set margin-inner to make the gap between two paragraphs like a normal line break, but that would affect all paragraphs.

prose:
  text-indent: 18
  margin-inner: 0

As an alternative, asciidoctor-pdf based on JavaScript allows you to use full CSS styling. At the moment it is an alpha version.

Alexander Schwartz (alexander.schwartz@gmx.net)
https://www.ahus1.de
Reply | Threaded
Open this post in threaded view
|

Re: Indent new hardbreak line

mojavelinux
Administrator

On Sat, Nov 30, 2019 at 1:50 PM Alexander Schwartz [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Looking at the docs about prose, asciidoctor-pdf can only indent paragraphs, not hardbreak lines.

The docs also suggest to set margin-inner to make the gap between two paragraphs like a normal line break, but that would affect all paragraphs.

prose:
  text-indent: 18
  margin-inner: 0

As an alternative, asciidoctor-pdf based on JavaScript allows you to use full CSS styling. At the moment it is an alpha version.

Alexander Schwartz ([hidden email])
https://www.ahus1.de



If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Indent-new-hardbreak-line-tp7384p7388.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux