Skip to content

Commit 85d6880

Browse files
committed
docs: Minor grammar fixes
1 parent 9f1621d commit 85d6880

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@
7979
### Changed
8080

8181
- Improved error messages. [#27](https://github.com/Stranger6667/css-inline/issues/27)
82-
- Skip selectors, that can't be parsed.
82+
- Skip selectors that can't be parsed.
8383

8484
### Fixed
8585

86-
- Ignore `@media` queries, since they can not be inlined. [#7](https://github.com/Stranger6667/css-inline/issues/7)
86+
- Ignore `@media` queries since they can not be inlined. [#7](https://github.com/Stranger6667/css-inline/issues/7)
8787
- Panic in cases when styles are applied to the currently processed "link" tags.
8888

8989
### Performance

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Crates.io](https://img.shields.io/crates/v/css-inline.svg)](https://crates.io/crates/css-inline)
55
[![docs.rs](https://docs.rs/css-inline/badge.svg?version=0.5.0)](https://docs.rs/css-inline/0.5.0/css_inline/)
66

7-
A crate for inlining CSS into HTML documents. When you send HTML emails you need to use "style" attributes instead of "style" tags.
7+
A crate for inlining CSS into HTML documents. When you send HTML emails, you need to use "style" attributes instead of "style" tags.
88

99
For example, this HTML:
1010

@@ -31,7 +31,7 @@ Will be turned into this:
3131
</html>
3232
```
3333

34-
To use it in your project add the following line to your `dependencies` section in project's `Cargo.toml` file:
34+
To use it in your project add the following line to your `dependencies` section in the project's `Cargo.toml` file:
3535

3636
```toml
3737
css-inline = "0.5"
@@ -98,10 +98,10 @@ USAGE:
9898
ARGS:
9999
<PATH>...
100100
An HTML document to process. In each specified document "css-inline" will look for
101-
all relevant "style" and "link" tags, will load CSS from them and then will inline it
102-
to the HTML tags, according to the relevant CSS selectors.
103-
When multiple documents are specified, they will be processed in parallel and each inlined
104-
file will be saved with "inlined." prefix. E.g. for "example.html", there will be
101+
all relevant "style" and "link" tags, will load CSS from them and then inline it
102+
to the HTML tags, according to the corresponding CSS selectors.
103+
When multiple documents are specified, they will be processed in parallel, and each inlined
104+
file will be saved with "inlined." prefix. E.g., for "example.html", there will be
105105
"inlined.example.html".
106106

107107
OPTIONS:

python/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
### Changed
6161

62-
- Skip selectors, that can't be parsed.
62+
- Skip selectors that can't be parsed.
6363
- Validate `base_url` to be a valid URL.
6464

6565
### Fixed

python/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To inline CSS in a HTML document:
4242
4343
inlined = css_inline.inline(HTML)
4444
45-
If you want to inline many HTML documents then you can utilize ``inline_many`` that processes the input in parallel.
45+
If you want to inline many HTML documents, you can utilize ``inline_many`` that processes the input in parallel.
4646

4747
.. code:: python
4848

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! # css-inline
22
//!
3-
//! A crate for inlining CSS into HTML documents. When you send HTML emails you need to use "style"
3+
//! A crate for inlining CSS into HTML documents. When you send HTML emails, you need to use "style"
44
//! attributes instead of "style" tags.
55
//!
66
//! For example, this HTML:
@@ -160,7 +160,7 @@ impl<'a> InlineOptions<'a> {
160160
self
161161
}
162162

163-
/// Set base url that will be used for loading external stylesheets via relative URLs.
163+
/// Set base URL that will be used for loading external stylesheets via relative URLs.
164164
pub fn base_url(mut self, base_url: Option<Url>) -> Self {
165165
self.base_url = base_url;
166166
self

src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ USAGE:
2323
ARGS:
2424
<PATH>...
2525
An HTML document to process. In each specified document "css-inline" will look for
26-
all relevant "style" and "link" tags, will load CSS from them and then will inline it
27-
to the HTML tags, according to the relevant CSS selectors.
28-
When multiple documents are specified, they will be processed in parallel and each inlined
29-
file will be saved with "inlined." prefix. E.g. for "example.html", there will be
26+
all relevant "style" and "link" tags, will load CSS from them and then inline it
27+
to the HTML tags, according to the corresponding CSS selectors.
28+
When multiple documents are specified, they will be processed in parallel, and each inlined
29+
file will be saved with "inlined." prefix. E.g., for "example.html", there will be
3030
"inlined.example.html".
3131
3232
OPTIONS:

0 commit comments

Comments
 (0)