Aleph
Aleph

Reputation: 1373

First line indentation in Sphinx

I do not manage to force sphinx to apply first line indentation to paragraphs with the ReadTheDoc theme. I tried

texinfo_elements = {'paragraphindent': 2}

but it does not seem to work. Is there another thing to do?

Upvotes: 0

Views: 298

Answers (1)

Steve Piercy
Steve Piercy

Reputation: 15045

You can use a custom style with text-indent.

You can add this style to a custom.css file and include it in your conf.py as a configuration option html_css_files.

custom.css

p {
  text-indent: 1em;
}

conf.py

html_css_files = ['custom.css']

Upvotes: 1

Related Questions