View Single Post
Old 04-07-2015, 05:20 PM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,737
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by oenopion View Post
What's the best way to amend all my other 34 first chapter paragraphs? Is there any type of s&r trick, or paste them in one by one?
That depends on the element that precedes the first paragraph. If it's for example a <h3>...</h3> heading, you could theoretically use a regular expression that searches for a closing h3 tag followed by an opening p tag.

However, it'd be probably more efficient to use a CSS plus operator in your stylesheet.

Assuming that all your chapter headings are enclosed in h3 tags, you could for example use the following styles to indent all paragraphs except for the first paragraph immediately following a h3 heading.

Code:
p { text-indent: 1em; margin: 0;}
h3 + p { text-indent: 0; }

Last edited by Doitsu; 04-07-2015 at 05:23 PM.
Doitsu is offline   Reply With Quote